@font-face { font-family: Iosevka; src: url(/Iosevka/IosevkaAile-Bold.ttc); } @font-face{ font-family: Iosevka_bold; src: url(/Iosevka/IosevkaAile-Heavy.ttc); }
@font-face { font-family: Monogram; src: url(/static/fonts/monogram.ttf); }
button, img, a, svg, h1, h2, h3, p{transition: all 500ms; -webkit-transition: all 500ms; -moz-transition: all 500ms; -o-transition: all 500ms;}
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Monogram;
  text-align: center;
  color: #E0E0E0;
  height: 100vh;
  background: linear-gradient(-45deg, #141122, #18173f);
  background-size: 800% 800%;
  animation: gradientAnimation 30s ease infinite;
}
/* Gradient */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  color: white;
  font-size: 2rem;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-5px);
}
#back-to-top svg { height: 100%; width: 100%; }
#back-to-top svg:hover { color: #FF6B6B; }

a { color: #6e6bff; text-decoration: none; } 
a:has(.headline) { color: #fff; text-decoration: none; }
a:has(.headline):hover { color: #fff; }
a:hover { color: #6BCB77; }
svg:hover{ scale: 1.2; }
section { min-height: 100%; }

h1 { font-size: 3rem; margin-bottom: 20px; }
h2 { font-size: 3rem; padding-top: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
h2:hover { letter-spacing: 5px; }
.headline { font-size: 4rem; margin: 0; margin-bottom: 8px; margin-left: 8px; letter-spacing: 4px; }
.no-hover { margin-left: 0; }
p { font-size: 2rem; line-height: 1.5; }
hr { width: 20%; height: 1px; background-color: #fff; }

.headline-container { align-self: center; text-align: left; width: auto; }
.headline:hover { transform: translateX(20px); cursor: pointer; }
.no-hover:hover { transform: translateX(0); cursor: default; }
.intro-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.social-links svg {
  margin: 0 15px;
  width: 48px;
  height: 48px; 
  color: #fff;
}
.social-links svg:hover { color: #FF6B6B; }

/********** Projects ***********/
.timeline-section { padding: 80px 20px; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; margin-top: 4rem; }

/* Vertical line */
.timeline::before{
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #fff;
  transform: translateX(-50%);
}
.timeline-item{
  position: relative;
  width: 50%;
  padding: 30px 40px;
  box-sizing: border-box;
}
/* Doots */
.timeline-item::before{
  content: '';
  position: absolute;
  top: 40px;
  width: 14px;
  height: 14px;
  background-color: #fff;
  border-radius: 50%;
  z-index: 2;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.left::before { right: -7px; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-item.right::before { left: -7px; }

/* Content */
.timeline-content{
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}
.timeline-content:hover h3{
  color: #6BCB77;
}
.timeline-content h3{ margin-top: 0; color: #FF6B6B; font-size: 1.5rem; }
.timeline-content p { margin-bottom: 0; color: #fff; }

/* Center everything */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item::before {
    left: 13px;
  }
}