/* ==========================================================================
   SKILLS SECTION STYLES
   Organized and documented for easy customization
   ========================================================================== */

/* --------------------------------------------------------------------------
   GOOGLE FONTS
   --------------------------------------------------------------------------
   Import fonts used in the skills section
   ---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400&display=swap');

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------------------------
   Skills section title styling
   ---------------------------------------------------------------------------*/
.skills-title,
.services-title {
    font-weight: 700;
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   TIMELINE LAYOUT
   --------------------------------------------------------------------------
   Main timeline container for skills display
   -------------------------------------------------------------------------- */
.timeline {
  width: 80%;
  height: auto;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   CARD STYLES
   --------------------------------------------------------------------------
   Individual skill card styling
   -------------------------------------------------------------------------- */
.timeline-content {
  background: #ECF0F1;
  box-shadow: 4px 4px 15px rgba(55, 118, 171, 0.4), -2px -2px 10px rgba(55, 118, 171, 0.2);
  border-radius: 6px;
  color: #4a5568;
  padding: 3rem;
  transition: 0.4s ease;
  overflow-wrap: break-word !important;
  margin: 1rem;
  margin-bottom: 20px;
  text-align: left;
}

.timeline-content:hover {
  box-shadow: 6px 6px 20px rgba(55, 118, 171, 0.5), -3px -3px 15px rgba(55, 118, 171, 0.3);
}

.timeline-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  align-items: center;
  font-weight: 600;
  color: #4a5568;
  text-align: center;
  width: 100%;
}

.timeline-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.timeline-component {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE: MOBILE (< 768px)
   --------------------------------------------------------------------------
   Single column layout, cards centered
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .timeline {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }
  
  /* Hide decorative timeline elements on mobile */
  .timeline-empty,
  .timeline-middle {
    display: none !important;
  }
  
  .timeline-content {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px;
    left: 0 !important;
    right: 0 !important;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Center the card titles - always at top */
  .timeline-content h3 {
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 10px;
    align-self: flex-start;
  }
  
  /* Reset ul to display vertically */
  .timeline-content ul {
    display: block;
    text-align: left;
    padding-left: 1.2rem;
    width: 100%;
  }
  
  .timeline-component {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    display: flex !important;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE: SMALL MOBILE (< 480px)
   --------------------------------------------------------------------------
   Further adjustments for very small screens
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .timeline {
    width: 95%;
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE: DESKTOP (>= 768px)
   --------------------------------------------------------------------------
   Two-column grid layout with center timeline
   -------------------------------------------------------------------------- */
@media screen and (min-width: 768px) {
  .timeline {
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
  }
  
  .timeline-middle {
    position: relative;
    background-color: #979dac;
    width: 3px;
    height: 100%;
  }
  
  .main-middle {
    opacity: 0;
  }
  
  .timeline-circle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #cccfd4;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

