/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
  width: 100%;
  padding: 20px 30px;
  background-color: rgba(0, 0, 0, 0.5); 
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(102,255,204,0.1);
  flex-wrap: wrap;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #66ffcc;
  z-index: 1001;
}

.nav-links {
  display: flex;
  gap: 25px;
  font-family: 'Orbitron', sans-serif;
}

.nav-links a {
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #66ffcc;
  left: 0;
  bottom: -4px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.burger {
  display: none;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  height: 3px;
  background: #66ffcc;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(102,255,204,0.15);
    padding: 50px 80px;
    display: none;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(102,255,204,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: flex;
  }
}

section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
}

h1, h2 {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  color: #66ffcc;
  font-size: 2.2rem;
}

h2 {
  color: #66ffcc;
  font-size: 1.8rem;
}
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-section .overlay {
  background-color: rgba(0, 0, 0, 0.5); /* чёрный с 50% прозрачностью */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(102, 255, 204, 0.1);
}

.hero-section h1 {
  font-size: 2.5rem;
  color: #66ffcc;
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 1.2rem;
  color: #e0e0e0;
}
/* About */
.about-box {
  background-color: rgba(0, 0, 0, 0.5); 
  border: 0px solid transparent;
  border-radius: 32px;
  padding: 30px;
  color: #e0e0e0;
  position: relative;
  background-clip: padding-box;
  animation: glow-fade-in 1.2s ease;

  box-shadow:
    0 0 20px rgba(102, 255, 204, 0.3),
    0 0 40px rgba(102, 255, 204, 0.2),
    0 0 60px rgba(102, 255, 204, 0.15);
}

.about-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 3px;
  background: linear-gradient(135deg, #66ffcc, #26fcc3);

  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;

  pointer-events: none;
  z-index: -2;

  filter: drop-shadow(0 0 25px rgba(102, 255, 204, 0.6));
}


@keyframes glow-fade-in {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HERO / HOME SECTION ===== */
#home {
  margin-top: 2vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

#home h1, #home p {
  position: relative;
  z-index: 2;
}

/* ===== TIMELINE ===== */
#timeline {
  overflow: hidden;
}

.timeline-scroll {
  overflow-x: auto;
  padding: 0px 0 20px;
  position: relative;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.timeline-scroll.dragging {
  cursor: grabbing;
}

.timeline-track {
  position: relative;
  display: inline-flex;
  gap: 40px;
  padding: 0 20px;
  min-width: max-content;
  user-select: none;
}

.timeline-line {
  position: absolute;
  top: 20px;
  left: 0;
  height: 8px;
  width: 100%;
  background: linear-gradient(135deg, #66ffcc, #3399ff);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(102, 255, 204, 0.4);
  z-index: 1;
  pointer-events: none;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 240px;
  flex-shrink: 0;
  z-index: 2;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: #66ffcc;
  border: 3px solid #0f0f0f;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(102,255,204,0.7);
  margin-bottom: 20px;
  z-index: 3;
}

.timeline-event {
  background-color: rgba(0, 0, 0, 0.5); /* чёрный с 50% прозрачностью */
  border: 2px solid #66ffcc;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(102,255,204,0.1);
  transition: transform 0.3s;
}

.timeline-event:hover {
  transform: scale(1.05);
}

.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background-color: #66ffcc;
  border-radius: 4px;
}
