/* main.css - content, container, portrait, carousel, typography */

/* Gradient container */
.container {
  margin: 75px auto 20px; 
  width: 90%;
  max-width: 1200px;
  padding: 20px;
  background: linear-gradient(to right,#eaf4f4,#fef9f4);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Resume-specific container */
.resume-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 160px); /* fill viewport minus navbar/footer */
  padding: 5px;              /* border effect */
  box-sizing: border-box;
}

/* PDF viewer iframe */
.resume-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.content {
  flex: 0 0 72%;
  max-width: 72%;
  padding-right: 20px;
}

/* Portrait image */
.image-container {
  position: absolute;
  top: -20px;
  right: -30px;
  bottom: -40px;
}
.portrait-img {
  max-width: 400px;
  height: auto;
  border-radius: 6px;
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 18px 0;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 420ms cubic-bezier(.22,.9,.4,1);
  will-change: transform;
  touch-action: pan-y;
  transform: translate3d(0,0,0);
}

.carousel-slide {
  flex: 0 0 auto;
  width: min(300px, 78%);
  max-width: 320px;
  min-height: 84px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-icon {
  font-size: 20px;
}

.carousel-text {
  font-size: clamp(10px, 0.9vw, 13px);
  line-height: 1.2;
}

.highlight {
  color: #006400;
  font-weight: bold;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.carousel-nav.prev { left: 8px; }
.carousel-nav.next { right: 8px; }

/* Typography */
.headline {
  color: #006400;
  font-weight: bold;
  font-size: 1.6rem;
  margin-top: 0;
}
.subheadline {
  color: #006400;
  font-size: 1.2rem;
}
.tagline {
  font-style: italic;
  color: black;
  font-size: 1rem;
}
.description {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* =========================================================
   CAREER LAYOUT (Timeline + Sidebar)
   ========================================================= */
.career-layout {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

/* Timeline */
.timeline {
  flex: 0 0 65%;
  position: relative;
  margin: 40px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;                 /* vertical line fixed to the left */
  width: 3px;
  background: #009688;
}

/* Timeline items (all aligned right of the line) */
.timeline-item {
  position: relative;
  width: calc(100% - 80px);   /* leave room for the line */
  margin: 0 0 30px 80px;      /* indent all items equally */
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Connector dots: always on the vertical line */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -40px;                /* dot sits on the line */
  width: 14px;
  height: 14px;
  background: #FFD700;
  border: 2px solid #009688;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Pulse animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,150,136,0.6); }
  70% { box-shadow: 0 0 0 15px rgba(0,150,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,150,136,0); }
}

/* Right column (Sidebar) */
.sidebar {
  flex: 0 0 30%;
}
.edu-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 10px;
}
.edu-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.edu-item div {
  font-size: 0.9rem;
}
.edu-item strong {
  display: block;
  color: #1D1F2B;
}
.edu-item span {
  font-size: 0.8rem;
  color: #555;
}

/* Responsive (stack layout on small screens) */
@media (max-width: 900px) {
  .career-layout {
    flex-direction: column;
  }
  .timeline, .sidebar {
    flex: 1 1 100%;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    margin: 0 0 30px 40px;
  }
  .timeline-item::before {
    left: -30px;
  }
}

/* ============================
   Timeline Role/Company Styles
   ============================ */

/* Role title */
.role {
  color: #006400;           /* dark green */
  font-weight: bold;
  font-size: 1.2rem;        /* readable but single-line */
  margin-bottom: 4px;
}

/* Company block with logo + name */
.company-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.company {
  color: #001f4d;           /* navy blue */
  font-weight: bold;
  font-size: 1rem;
}

/* Company logos inside timeline */
.company-logo {
  width: 28px;              /* fixed width */
  height: 28px;             /* fixed height */
  max-width: 32px;          /* prevent oversized logos */
  max-height: 32px;
  object-fit: contain;      /* keep proportions */
  border-radius: 4px;       /* subtle rounded corners */
  background: #fff;         /* clean background if transparent */
  padding: 2px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* Role period (dates) */
.period {
  font-size: 0.85rem;
  font-style: italic;
  color: #555;
  display: block;
  margin-bottom: 10px;
}

