/* Projects nadpis a podnadpis */
.projects__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.projects__title-main {
  display: block;
  margin-bottom: 0.5rem;
}

.projects__title-highlight {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.projects__title-highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 2px;
  opacity: 0.7;
  animation: underlineGrow 1s ease 0.5s forwards;
  transform: scaleX(0);
  transform-origin: left;
}

.projects__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #c7d2fe;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.projects__subtitle-text {
  color: #c7d2fe;
}

.projects__subtitle-highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Projects timeline */
.projects-timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.projects-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  transform: translateX(-50%);
}

.project-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.project-item:nth-child(1) {
  animation-delay: 0.2s;
}

.project-item:nth-child(2) {
  animation-delay: 0.4s;
}

.project-item:nth-child(3) {
  animation-delay: 0.6s;
}

.project-item:nth-child(4) {
  animation-delay: 0.8s;
}

.project-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 3px solid #0f0f23;
}

.project-item:nth-child(odd) {
  flex-direction: row;
}

.project-item:nth-child(even) {
  flex-direction: row-reverse;
}

.project-item__logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.project-logo {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
  opacity: 0.9;
}

.project-item__content {
  flex: 1;
  max-width: 45%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.project-item__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 3px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 0 2px 2px;
}

.project-item__content:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-item__content:hover::before {
  opacity: 1;
}

.project-item:nth-child(odd) .project-item__content {
  margin-right: 2rem;
}

.project-item:nth-child(even) .project-item__content {
  margin-left: 2rem;
}

.project-item__header {
  margin-bottom: 1rem;
}

.project-item__title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.project-item__company {
  font-size: 1.25rem;
  color: #8b5cf6;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-item__period {
  font-size: 1rem;
  color: #c7d2fe;
  font-weight: 500;
}

.project-item__description {
  font-size: 1.1rem;
  color: #a5b4fc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-item__description ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-item__description li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.project-item__description li::before {
  content: '•';
  color: #8b5cf6;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.project-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  font-size: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Responsive design */
@media (max-width: 768px) {
  .projects-timeline::before {
    left: 2rem;
  }
  
  .project-item {
    flex-direction: column !important;
    margin-left: 0;
    margin-right: 0;
  }
  
  .project-item::before {
    left: 2rem;
  }
  
  .project-item__content {
    max-width: 100%;
    margin-left: 4rem !important;
    margin-right: 0 !important;
  }
  
  .project-item__title {
    font-size: 1.25rem;
  }
  
  .project-item__company {
    font-size: 1rem;
  }
}