:root {
  --background-color: #121212;
  --text-color: #ffffff;
  --card-background: #1e1e1e;
  --card-shadow: none;
  --cursor-border: #ffffff;
  --accent-color: #ff3d00;
  --font-family: "Syne", sans-serif;
  --glass-bg: rgba(30, 30, 30, 0.5);
  --glass-border: rgba(255, 255, 255, 0.2);
}
body.light-mode {
  --background-color: #fafafa;
  --text-color: #121212;
  --card-background: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --cursor-border: #121212;
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(0, 0, 0, 0.2);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  cursor: none;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.touch-device .cursor {
  display: none !important;
}

.touch-device,
.touch-device body,
.touch-device a,
.touch-device button,
.touch-device input,
.touch-device [data-cursor-text] {
  cursor: auto !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}
.cursor-inner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--cursor-border);
  border-radius: 50%;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.4s ease, border-width 0.4s ease, background-color 0.4s ease;
}
.cursor-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor.hovered .cursor-inner {
  transform: scale(4.5);
  border-width: 1px;
  border-color: var(--accent-color);
  background-color: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.cursor.hovered .cursor-text {
  opacity: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 1002;
}
.logo a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

.nav-links {
  list-style: none;
  display: flex;
}
.nav-links li {
  position: relative;
  margin-left: 2rem;
}
.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  cursor: none;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  display: block;
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 1%;
  transform: translateX(80%) translateY(0px);
  width: 280px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-0%) translateY(0);
}
}
.dropdown-menu ul {
  list-style: none;
}
.dropdown-menu a {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  white-space: nowrap;
}
.dropdown-menu a:active {
  color: var(--accent-color);
}
@media (hover: hover) and (pointer: fine) {
  .dropdown-menu a:hover {
    color: var(--accent-color);
  }
}
.dropdown-menu a::after {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
  z-index: 1002;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: all 0.3s ease;
}

.page-hero {
  padding-top: 20vh;
  padding-bottom: 10vh;
  text-align: center;
}
.page-hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.8;
}

.timeline-container {
  position: relative;
  padding: 5rem 0;
  max-width: 1000px;
  margin: 0 auto;
}
.timeline-container::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--glass-border);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item.left {
  left: 0;
}
.timeline-item.right {
  left: 50%;
}
.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -11px;
  background-color: var(--background-color);
  border: 2px solid var(--accent-color);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  transition: background-color 0.3s ease;
}
.timeline-item.right::after {
  left: -9px;
}
.timeline-item.visible::after {
  background-color: var(--accent-color);
}
.timeline-content {
  padding: 20px 30px;
  background-color: var(--card-background);
  position: relative;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.timeline-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: left;
}
.timeline-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
  opacity: 0.8;
}
.timeline-content .date {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

footer {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  text-align: center;
  padding: 5rem 0;
}

.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--card-background);
  box-shadow: var(--card-shadow);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: none;
  animation: floatAnimation 3s ease-in-out infinite;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.theme-toggle .material-symbols-outlined {
  font-size: 24px;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.theme-toggle .icon-sun {
  display: none;
}
.light-mode .theme-toggle .icon-sun {
  display: block;
}
.light-mode .theme-toggle .icon-moon {
  display: none;
}
@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    background: var(--background-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 1010;
  }
  .nav-links.nav-active {
    transform: translateX(0%);
  }
  .nav-links li {
    margin: 1.5rem 0;
  }
  .has-dropdown:hover .dropdown-menu {
    display: none;
  }
  .dropdown-menu {
    position: static;
    display: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: center;
    padding: 0;
    transform: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  .has-dropdown.active .dropdown-menu {
    display: block;
    max-height: 300px;
  }
  .has-dropdown > a {
    text-align: center;
  }
  .dropdown-menu ul {
    padding-top: 1rem;
  }
  .dropdown-menu a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }
  .burger {
    display: block;
    z-index: 1011;
  }
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .page-hero {
    padding-top: 25vh;
  }
  .page-hero h1 {
    font-size: 3.5rem;
  }
  .page-hero p {
    font-size: 1.1rem;
  }

  .timeline-container::after {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }
  .timeline-item::after {
    left: 20px;
  }
  .timeline-item.right::after {
    left: 20px;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 2.5rem;
  }
  .page-hero p {
    font-size: 1rem;
  }
  .timeline-content h2 {
    font-size: 1.5rem;
  }
  .timeline-content p {
    font-size: 0.9rem;
  }
  .theme-toggle {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
  }
}
