@import url(../main.css);

.holographic-button {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 1;
}

.holographic-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg,
            transparent,
            transparent 30%,
            var(--primary-dark));
    transform: rotate(-45deg) translateY(100%);
    transition: all 0.5s ease;

    opacity: 1;
    z-index: 0;
}

.holographic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--gradient-start);
}

.holographic-button:hover::before {
    opacity: 0;
    transform: rotate(-45deg);
}

.demo_btn {
    background: var(--primary);
}

.demo_btn:hover {
    background: var(--primary-dark);
}

.demo_btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -40%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg,
            transparent,
            transparent 30%,
            var(--primary-dark));
    transform: rotate(-45deg) translateY(100%);
    transition: all 0.5s ease;
    opacity: 1;
    z-index: 0;
}

/* timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #d6c3fa;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-year {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin: 2rem ;
  color: #6b21a8;
  position: relative;
  z-index: 2;
 
}
.timeline-year span{

 padding:2px 20px;
color: white;
 border-radius: 5px;
 background: var(--primary);
 border: 1px dotted var(--primary-dark);
 box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}


.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

.timeline-item.left {
  left: -50%;
  width: 680px;
  text-align: right;

}

.timeline-item.right {
  left: 50%;
    width: 680px;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  background-color: #6b21a8;
  border: 3px solid white;
  border-radius: 50%;
  z-index: 2;
}

.timeline-item.left::before {
  right: -8px;
}

.timeline-item.right::before {
  left: -8px;
}

.card {
  background: white; 
  padding: 1.25rem; 
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #9f7aea;
}

.card h3 {
  color: #6b21a8;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0.25rem 0;
  color: #444;
  font-size: 0.95rem;
}

/* Responsive Stack for Mobile */
@media screen and (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    padding-left: 2.5rem;
    text-align: left;
    left: 0;
  }

  .timeline-item::before {
    left: 0;
  }
}

/* Mobile-friendly hero adjustments */
@media screen and (max-width: 768px) {
  .hero_section_img {
    transform: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero_section_img iframe {
    transform: none !important;
    width: 100% !important;
    max-width: 520px;
    height: auto !important;
    border: 0;
  }
  /* hide decorative floating images on small screens to avoid overlap */
  .main_img {
    display: none !important;
  }

  /* Stack award cards and center content on mobile */
  .card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }

  .card img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
    margin-bottom: 0 !important;
  }

  .card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.25rem !important;
  }

  .card p {
    font-size: 0.95rem !important;
    margin: 0.25rem 0 !important;
  }
}

