/* Inheriting global styles from index.css */
/* Specific overrides for personalProfile page */

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.profile-card {
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.1) 0%,
      rgba(147, 51, 234, 0.1) 50%,
      rgba(236, 72, 153, 0.1) 100%);
}

.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.1);
}

.section-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-animate {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-image {
  position: relative;
  overflow: hidden;
}

.profile-image::before {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #10b981);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Timeline Styles */
#timeline {
  position: relative;
  z-index: 1;
}

#timeline .timeline-event {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

#timeline .timeline-date {
  min-width: 80px;
  font-weight: bold;
  color: #60a5fa;
  margin-right: 20px;
}

#timeline .timeline-content {
  background: rgba(255, 255, 255, 0.07);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#timeline .timeline-event::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #60a5fa, #a78bfa, #ec4899);
  z-index: -1;
  opacity: 0.2;
}

@media (max-width: 900px) {
  #timeline .max-w-2xl {
    max-width: 98vw;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 640px) {

  #timeline .flex,
  #timeline .flex-row-reverse {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  #timeline .w-1\/2 {
    width: 100% !important;
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #timeline .pr-8,
  #timeline .pl-8 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  #timeline .text-right,
  #timeline .text-left {
    text-align: left !important;
  }

  #timeline .mx-4 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #timeline .relative.flex.items-center.justify-center.w-10.h-10 {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    align-self: center;
  }

  #timeline .glass-effect {
    padding: 1rem !important;
    font-size: 0.97rem;
  }

  #timeline h2 {
    font-size: 1.5rem !important;
  }

  #timeline .hidden.sm\:block {
    display: block !important;
    position: static !important;
    text-align: left !important;
    margin-bottom: 0.25rem;
    font-size: 1rem !important;
    color: #60a5fa !important;
    padding-left: 0.25rem;
  }
}

/* Timeline Animations */
.timeline-event-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-event-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Card Hover Effect */
#timeline .glass-effect:hover {
  box-shadow: 0 8px 32px 0 rgba(80, 180, 255, 0.25), 0 1.5px 8px 0 rgba(160, 100, 255, 0.15);
  transform: translateY(-6px) scale(1.03);
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1.5px solid #60a5fa44;
}