/* ===================================
   Internship Section — Custom Styles
   =================================== */

.internship {
  position: relative;
  padding: 10vw 0 14.81vw;
}

.internship__inner {
  position: relative;
  width: 91.6666666667vw;
  margin: 0 auto;
}

/* --- Card layout: timeline (left) + content (right) --- */
.internship__card {
  display: flex;
  gap: 60px;
  margin-top: 48px;
}

/* --- Timeline (left column) --- */
.internship__timeline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 160px;
  position: relative;
}

.internship__period-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #71717a;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.internship__period {
  font-size: 15px;
  font-weight: 600;
  color: #18181b;
  letter-spacing: 0.02em;
}

.internship__timeline-line {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: #e4e4e7;
  margin-top: 16px;
  margin-left: 0;
}

/* --- Content (right column) --- */
.internship__content {
  flex: 1;
}

/* --- Company header: logo + name --- */
.internship__company-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.internship__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}

.internship__company {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #18181b;
  line-height: 1.3;
  margin: 0;
}

.internship__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #52525b;
  text-decoration: none;
  transition: color 0.3s;
}

.internship__link:hover {
  color: #18181b;
}

.internship__link svg {
  flex-shrink: 0;
}

.internship__separator {
  width: 40px;
  height: 1px;
  background: #e4e4e7;
  margin: 24px 0;
}

.internship__desc {
  font-size: 15px;
  line-height: 1.85;
  color: #3f3f46;
  margin: 0 0 16px;
}

.internship__desc:last-of-type {
  margin-bottom: 24px;
}

/* --- Technology tags --- */
.internship__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.internship__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #52525b;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  padding: 6px 14px;
  letter-spacing: 0.04em;
  transition: color 0.3s, border-color 0.3s;
}

.internship__tag:hover {
  color: #18181b;
  border-color: #18181b;
}

/* ===================================
   Scroll-triggered animation states
   =================================== */

/* Initial hidden states */
.intern-text-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Visible states (applied by JS) */
.internship--visible .intern-text-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for text reveals */
.internship--visible .intern-text-reveal:nth-child(1) { transition-delay: 0s; }
.internship--visible .intern-text-reveal:nth-child(2) { transition-delay: 0.1s; }
.internship--visible .intern-text-reveal:nth-child(3) { transition-delay: 0.2s; }
.internship--visible .intern-text-reveal:nth-child(4) { transition-delay: 0.3s; }
.internship--visible .intern-text-reveal:nth-child(5) { transition-delay: 0.4s; }
.internship--visible .intern-text-reveal:nth-child(6) { transition-delay: 0.5s; }
.internship--visible .intern-text-reveal:nth-child(7) { transition-delay: 0.6s; }

/* ===================================
   Responsive: 1024px and below
   =================================== */
@media screen and (max-width: 1024px) {
  .internship__card {
    flex-direction: column;
    gap: 32px;
  }

  .internship__timeline {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-width: 0;
  }

  .internship__timeline-line {
    width: auto;
    height: 1px;
    min-height: 0;
    flex: 1;
    margin-top: 0;
  }
}
