/* components.css - Pedram Ghassemi Portfolio Components: About, Experience, Education, Recognition, Blog Cards */

/* -----------------------------------------
   About Section
   ----------------------------------------- */
.t-about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.t-about__content {
  display: flex;
  flex-direction: column;
}

.t-about__body {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.t-about__visual {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

.t-about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
  border: 3.5px solid var(--accent-color);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.15);
}

/* Floating Status Chips */
.t-about__chips {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.t-about-chip {
  position: absolute;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}

/* Tag border accents */
.t-about-chip[style*="--t-about-chip-border"] {
  border-bottom: 2.5px solid var(--t-about-chip-border);
}

.t-about-chip--top-left {
  top: -10px;
  left: -40px;
  animation-delay: 0s;
}

.t-about-chip--top-right {
  top: 20px;
  right: -50px;
  animation-delay: 1.2s;
}

.t-about-chip--bottom-left {
  bottom: 20px;
  left: -50px;
  animation-delay: 2.4s;
}

.t-about-chip--bottom-right {
  bottom: -10px;
  right: -20px;
  animation-delay: 3.6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* -----------------------------------------
   Experience Section
   ----------------------------------------- */
.t-exp-intro {
  margin-bottom: 3rem;
}

.t-exp-intro__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}


/* Open list — no gaps between entries, dividers handle spacing */
.t-exp-list {
  display: flex;
  flex-direction: column;
}

/* Each role: 4-col grid — [logo] [date/info] [accent line] [content] */
.t-exp-role {
  display: grid;
  grid-template-columns: 4.5rem 11.5rem 1px 1fr;
  gap: 0 0.75rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: none;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  position: relative;
}

.t-exp-role:first-child {
  border-top: 1px solid var(--border-color);
}

/* The vertical accent line (column 3) */
.t-exp-role__head {
  display: contents; /* head elements participate directly in the grid */
}

.t-exp-role__head-main {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.3rem;
}

/* Thin vertical rule — column 3, spans all rows */
.t-exp-role__head-main::after {
  display: none;
}

/* Pseudo vertical rule via a dedicated element approach:
   Use the gap column as the visual divider with box-shadow */
.t-exp-role::before {
  content: '';
  grid-column: 3;
  grid-row: 1 / -1;
  background-color: var(--border-color);
  width: 1px;
  align-self: stretch;
}

.t-exp-role__company {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.t-exp-role__company a {
  color: inherit;
}

.t-exp-role__company a:hover {
  color: var(--accent-color);
}

.t-exp-role__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.t-exp-role__position {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
}

.t-exp-role__dates {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Logo sits in column 1, to the left of the role content */
.t-exp-role__logo {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 2.5rem;
  max-width: 4.5rem;
  object-fit: contain;
  object-position: left top;
  opacity: 0.65;
  margin-top: 0.3rem;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.t-exp-role:hover .t-exp-role__logo {
  opacity: 0.95;
  filter: grayscale(0);
}

/* Body content — column 4, row 1 */
.t-exp-role__body {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-left: 1.25rem;
}

/* Skills pills — column 4, row 2 (after body) */
.t-exp-role__skills {
  grid-column: 4;
  grid-row: 2;
  padding-left: 1.25rem;
}

.t-exp-role__summary {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* Accordion expand button */
.t-exp-role__toggle {
  background: none;
  border: none;
  color: var(--accent-color);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  padding: 0;
}

.t-exp-role__toggle:hover {
  opacity: 0.75;
}

.t-exp-role__toggle-icon {
  margin-left: 0.1rem;
  transition: transform 0.2s ease;
}

.t-exp-role__toggle[aria-expanded="true"] .t-exp-role__toggle-icon {
  transform: rotate(180deg);
}

/* Full details container (Smooth height collapse) */
.t-exp-role__full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-exp-role__full-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.t-exp-role__full p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* Bullets */
.t-desc-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.t-desc-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.t-desc-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 500;
}

/* Tech Skills Tag Pills */
.t-exp-role__skills,
.t-edu-entry__skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.t-exp-role__skills li,
.t-edu-entry__skills li {
  background-color: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono) !important;
  font-size: var(--text-xs) !important;
  font-weight: 500 !important;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition-fast);
}

.t-exp-role__skills li:hover,
.t-edu-entry__skills li:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: rgba(var(--accent-rgb), 0.04);
}

/* Force extension-injected elements to inherit typography and prevent layout shifts */
.t-exp-role__skills li *,
.t-edu-entry__skills li * {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: inline !important;
  line-height: inherit !important;
}

/* -----------------------------------------
   Education Section
   ----------------------------------------- */
.t-edu-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.t-edu-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 3.25rem;
}

/* Vertical Timeline Line */
.t-edu-timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background-color: var(--border-color);
}

.t-edu-entry {
  position: relative;
  padding-bottom: 2.5rem;
}

.t-edu-entry:last-child {
  padding-bottom: 0;
}

.t-edu-entry__connector {
  position: absolute;
  left: calc(-2.0rem + 1px);
  transform: translateX(-50%);
  top: 0.15rem;
}

.t-edu-entry__logo-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-edu-entry__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.125rem;
}

.t-edu-entry__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.t-edu-entry__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.t-edu-entry__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-edu-entry__school {
  font-size: var(--text-lg);
  font-weight: 600;
}

.t-edu-badge {
  background-color: var(--accent-badge);
  color: var(--accent-badge-text);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
}

.t-edu-entry__summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Quote Card on Right */
.t-edu-sidebar {
  position: sticky;
  top: 7rem;
}

.t-edu-quote-image-wrap {
  width: 100%;
  border-radius: 2rem;
  border: 3.5px solid var(--accent-color);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.t-edu-quote-image-wrap:hover .t-edu-quote-img {
  transform: scale(1.02);
}

.t-edu-quote-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Light / Dark Mode Toggle */
.t-edu-quote-img--light {
  display: block;
}

.t-edu-quote-img--dark {
  display: none;
}

:root[data-theme="dark"] .t-edu-quote-img--light {
  display: none;
}

:root[data-theme="dark"] .t-edu-quote-img--dark {
  display: block;
}

/* -----------------------------------------
   Recognition Section (Timeline & Filters)
   ----------------------------------------- */
.t-recog-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.t-recog-filter {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.t-recog-filter:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.t-recog-filter.is-active {
  background-color: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
}

/* -----------------------------------------
   Certifications Card Grid
   ----------------------------------------- */
.t-recog-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Remove old vertical line pseudo-element */
.t-recog-layout::before {
  display: none;
}

/* Year group headings */
.t-recog-year-rule {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.25rem;
}

.t-recog-year-rule:first-child {
  margin-top: 0;
}

.t-recog-year-rule::before,
.t-recog-year-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.t-recog-year-rule span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background-color: transparent;
  padding: 0;
  margin-left: 0;
  text-transform: uppercase;
}

/* Cert card */
.t-recog-entry {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-color);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: var(--transition-fast);
  position: relative;
}

.t-recog-entry:hover {
  border-left-color: var(--accent-color);
  box-shadow: 0 12px 30px -10px rgba(var(--accent-rgb), 0.15);
  transform: translateY(-2px);
}

/* Hide old rail & dot columns */
.t-recog-entry__rail {
  display: none;
}

.t-recog-entry__dot {
  display: none;
}

/* Date badge — transparent, border, accent text (matches pill system) */
.t-recog-entry__marker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.15rem 0.6rem;
  align-self: flex-start;
}

.t-recog-entry__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.t-recog-entry__category {
  display: none;
}

.t-recog-entry__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.t-recog-entry__subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Blog Header & Title with Medium Logo */
.t-blog-header {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.t-blog-header__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1rem;
  border-bottom: 2.5px solid transparent;
  transition: var(--transition-smooth);
  cursor: default;
}

.t-blog-header__title-wrap:hover {
  border-color: var(--accent-color);
}

.t-blog-header__logo {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.t-blog-header__title-wrap:hover .t-blog-header__logo {
  color: var(--accent-color);
  transform: rotate(-6deg) scale(1.05);
}

/* -----------------------------------------
   Activity & Logs (Carousel Blog Cards)
   ----------------------------------------- */
/* Blog Carousel Wrapper with indicator overlays */
.t-blog-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden; /* Clips card overflow into page margins */
  padding: 0.5rem 0.25rem 0 0.25rem;
  margin: 0 -0.25rem;
}

.t-carousel-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.t-carousel-arrow.is-visible {
  opacity: 1;
}

.t-carousel-arrow--left {
  left: -1px;
  justify-content: flex-start;
  padding-left: 0.5rem;
  background: linear-gradient(to right, var(--bg-secondary) 30%, transparent);
}

.t-carousel-arrow--right {
  right: -1px;
  justify-content: flex-end;
  padding-right: 0.5rem;
  background: linear-gradient(to left, var(--bg-secondary) 30%, transparent);
}

.t-carousel-arrow-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  transition: var(--transition-fast);
}

.t-carousel-arrow-btn:hover {
  background-color: var(--badge-bg);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.05);
}

.t-carousel-arrow-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.t-activity-masonry {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 0.5rem 0.25rem 1.5rem 0.25rem;
  margin: -0.5rem -0.25rem 0 -0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  -webkit-overflow-scrolling: touch;
  position: relative; /* Establishes stacking context */
  z-index: 1; /* Establishes stacking context */
}

.t-activity-masonry.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.t-activity-masonry.is-dragging .t-activity-card {
  scroll-snap-align: none;
  pointer-events: none;
}

.t-activity-masonry::-webkit-scrollbar {
  height: 6px;
}

.t-activity-masonry::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
}

.t-activity-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
  transition: var(--transition-smooth);
  height: auto;
  cursor: pointer;
  user-select: none;
}

.t-activity-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px -10px rgba(var(--accent-rgb), 0.15);
  transform: translateY(-2px);
}

.t-activity-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.t-activity-card:hover .t-activity-card__cover {
  opacity: 0.9;
}

/* Card Footer Author Section (Bottom Left Layout) */
.t-activity-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto; /* Pushes it to the bottom of the card */
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.t-activity-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.t-activity-card__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.t-activity-card__name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
}

.t-activity-card__date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.t-activity-card__body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.t-activity-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.t-activity-card__text--clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -----------------------------------------
   Component-Specific Media Queries
   ----------------------------------------- */
@media (max-width: 900px) {
  .t-about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .t-about__visual {
    grid-row: 1; /* Picture on top */
  }
  .t-about-chip--top-left {
    left: 0;
  }
  .t-about-chip--top-right {
    right: 0;
  }
  .t-about-chip--bottom-left {
    left: 0;
  }
  .t-about-chip--bottom-right {
    right: 0;
  }
  .t-edu-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .t-edu-sidebar {
    position: static;
  }
  .t-exp-role {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }
  .t-exp-role::before {
    display: none; /* hide vertical rule on mobile */
  }
  .t-exp-role__head-main {
    grid-column: 1;
    grid-row: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
  }
  .t-exp-role__body {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
  }
  .t-exp-role__skills {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
  }
  .t-exp-role__logo {
    grid-column: 1;
    grid-row: auto;
    width: auto;
    height: 1.75rem;
    max-width: 6rem;
    margin-top: 0.75rem;
    object-position: left center;
  }
  .t-activity-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 640px) {
  .t-recog-layout {
    grid-template-columns: 1fr;
  }
  .t-activity-card {
    flex: 0 0 85%;
  }
}

/* -----------------------------------------
   CTA / Explore Section
   ----------------------------------------- */
.t-section--cta {
  background-color: var(--bg-secondary);
}

.t-cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.t-cta-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.t-cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

.t-cta-btns {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.t-cta-location {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* -----------------------------------------
   Redesigned Experience Section (Split Layout)
   ----------------------------------------- */
.t-exp-layout {
  display: grid;
  grid-template-columns: 20rem 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Left sidebar list */
.t-exp-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.t-exp-tab-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  padding: 1.25rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.t-exp-tab-item:hover {
  background-color: var(--bg-secondary);
}

.t-exp-tab-item.is-active {
  background: var(--bg-dock);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.t-exp-tab-item__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.t-exp-tab-item__logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.t-exp-tab-item__logo-placeholder {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-exp-tab-item__logo-placeholder svg {
  color: var(--text-muted);
}

.t-exp-tab-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.t-exp-tab-item__company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.t-exp-tab-item__position {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.t-exp-tab-item__dates {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Right details pane */
.t-exp-details {
  position: relative;
  width: 100%;
}

.t-exp-details-panel {
  display: none;
}

.t-exp-details-panel.is-active {
  display: block;
  animation: fadeInDetails 0.4s ease forwards;
}

@keyframes fadeInDetails {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.t-exp-details__header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.t-exp-details__logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.t-exp-details__header-meta {
  display: flex;
  flex-direction: column;
}

.t-exp-details__company {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.t-exp-details__company a {
  color: inherit;
}

.t-exp-details__company a:hover {
  color: var(--accent-color);
}

.t-exp-details__role {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.t-exp-details__dates {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.t-exp-details__body {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.t-exp-details__body p {
  margin-bottom: 1.25rem;
}

.t-exp-details__body p:last-child {
  margin-bottom: 0;
}

.t-exp-details__section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.t-exp-details__body .t-desc-list {
  margin: 1.25rem 0;
  gap: 0.85rem;
}

.t-exp-details__body .t-desc-list li {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.65;
}

.t-exp-details__body .t-desc-list li strong {
  color: var(--text-main);
}

.t-exp-details__skills-wrap {
  margin-top: 2rem;
}

.t-exp-details__skills-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Spacing and divider style for grouped sub-roles (e.g. trading jobs) */
.t-exp-details__group {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.t-exp-details__sub-role {
  position: relative;
}

.t-exp-details__sub-role:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -1.75rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
}

/* Responsiveness on tablet / mobile viewport */
@media (max-width: 900px) {
  .t-exp-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .t-exp-list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
  }

  .t-exp-list::-webkit-scrollbar {
    display: none;
  }

  .t-exp-tab-item {
    flex: 0 0 auto;
    width: auto;
    padding: 0.85rem 1.25rem;
  }

  .t-exp-tab-item__logo,
  .t-exp-tab-item__logo-placeholder {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* -----------------------------------------
   Mac-Style Terminal Component
   ----------------------------------------- */
.t-terminal {
  --term-bg: #0d0f0e;
  --term-card-bg: #141615;
  --term-border: rgba(255, 255, 255, 0.06);
  --term-comment: #64748b;
  --term-text: #e2e8f0;
  --term-muted: #94a3b8;
  --term-accent: #10b981;
  --term-header-bg: #070808;
  
  background-color: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  margin-top: 2rem;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

/* Light theme overrides */
:root[data-theme="light"] .t-terminal {
  --term-bg: #f8fafc;
  --term-card-bg: #ffffff;
  --term-border: #e2e8f0;
  --term-comment: #64748b;
  --term-text: #1e293b;
  --term-muted: #475569;
  --term-accent: #059669;
  --term-header-bg: #f1f5f9;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.06);
}

/* Terminal Header */
.t-terminal__header {
  background-color: var(--term-header-bg);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--term-border);
}

.t-terminal__dots {
  display: flex;
  gap: 6px;
}

.t-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.t-terminal__dot--red { background-color: #ef4444; }
.t-terminal__dot--yellow { background-color: #f59e0b; }
.t-terminal__dot--green { background-color: #10b981; }

.t-terminal__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--term-muted);
  font-weight: 500;
}

.t-terminal__status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--term-comment);
}

/* Terminal Body */
.t-terminal__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.t-terminal__comment {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--term-comment);
  line-height: 1.6;
}

.t-terminal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0.75rem 0;
}

.t-terminal__card {
  background-color: var(--term-card-bg);
  border: 1px solid var(--term-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.t-terminal__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--term-accent);
}

.t-terminal__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t-terminal__card-node {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--term-accent);
  font-weight: 600;
}

.t-terminal__card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--term-accent);
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

:root[data-theme="light"] .t-terminal__card-status {
  background-color: rgba(5, 150, 105, 0.08);
}

.t-terminal__pulse {
  width: 6px;
  height: 6px;
  background-color: var(--term-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--term-accent);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px var(--term-accent); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.t-terminal__card-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--term-text);
  margin: 0;
  line-height: 1.3;
}

.t-terminal__card-text {
  font-size: 0.8rem;
  color: var(--term-muted);
  line-height: 1.5;
  margin: 0;
}

/* Terminal Tabs inside header */
.t-terminal__tabs {
  display: flex;
  margin-left: 2rem;
  height: 100%;
  align-items: flex-end;
}

.t-terminal__tab-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--term-muted);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px 8px 0 0;
  transition: all 0.25s ease;
  position: relative;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.t-terminal__tab-btn:hover {
  color: var(--term-text);
  background-color: rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .t-terminal__tab-btn:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.t-terminal__tab-btn.is-active {
  color: var(--term-text);
  background-color: var(--term-bg);
  border-bottom-color: var(--term-accent);
}

.t-terminal__tab-icon {
  opacity: 0.5;
  transition: all 0.25s ease;
}

.t-terminal__tab-btn.is-active .t-terminal__tab-icon {
  opacity: 1;
  color: var(--term-accent);
}

.t-terminal__panel {
  display: none;
}

.t-terminal__panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInDetails 0.3s ease forwards;
}

/* Performance metrics styling */
.t-terminal__perf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0.75rem 0;
}

.t-terminal__perf-card {
  background-color: var(--term-card-bg);
  border: 1px solid var(--term-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.t-terminal__perf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--term-accent);
}

.t-terminal__perf-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--term-accent);
  line-height: 1;
}

.t-terminal__perf-label {
  font-size: 0.8rem;
  color: var(--term-text);
  font-weight: 500;
  line-height: 1.4;
}

.t-terminal__perf-bar {
  width: 100%;
  height: 4px;
  background-color: var(--term-border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.t-terminal__perf-bar-fill {
  height: 100%;
  background-color: var(--term-accent);
  border-radius: 10px;
  box-shadow: 0 0 8px var(--term-accent);
}

/* Started tab layout */
.t-terminal__started-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: center;
}

.t-terminal__started-story {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.t-terminal__started-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.t-terminal__metric-card {
  background-color: var(--term-card-bg);
  border: 1px solid var(--term-border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.t-terminal__metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--term-accent);
}

.t-terminal__metric-val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--term-accent);
  line-height: 1;
}

.t-terminal__metric-lbl {
  font-size: 0.75rem;
  color: var(--term-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Response/Adapative Styling */
@media (max-width: 900px) {
  .t-terminal__grid,
  .t-terminal__perf-grid,
  .t-terminal__started-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .t-terminal__body {
    padding: 1.25rem;
  }
}

/* Mobile-Specific Responsive Overrides */
@media (max-width: 640px) {
  /* --- About Section Status Chips Reflow --- */
  .t-about__visual {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 20rem;
  }
  .t-about__image {
    aspect-ratio: 4 / 5;
    height: auto;
  }
  .t-about__chips {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    pointer-events: auto;
  }
  .t-about-chip {
    position: static;
    animation: none !important;
  }

  /* --- Full-Bleed Scrollable Blog Carousel & Hide Arrows --- */
  .t-blog-carousel-wrapper {
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    width: auto;
  }
  .t-activity-masonry {
    margin-inline: 0;
    padding-inline: 0 1.25rem;
  }
  .t-carousel-arrow {
    display: none !important;
  }

  /* --- Full-Bleed Scrollable Job Experience Tabs --- */
  .t-exp-list {
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    width: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
  }

  /* --- IDE-Style Terminal Header Dots/Tabs Vertical Stack --- */
  .t-terminal__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0.5rem 1.25rem;
  }
  .t-terminal__dots {
    margin-left: 0.25rem;
  }
  .t-terminal__tabs {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 0.5rem;
    padding-bottom: 2px;
  }
  .t-terminal__tabs::-webkit-scrollbar {
    display: none;
  }
  .t-terminal__tab-btn {
    flex: 0 0 auto;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  /* --- Education Timeline Alignment Indent --- */
  .t-edu-timeline {
    padding-left: 2.5rem;
  }
  .t-edu-entry__connector {
    left: calc(-1.25rem + 1px);
  }
  .t-edu-timeline::before {
    left: 1.25rem;
  }
}

/* -----------------------------------------
   Services Section (Three ways to work with me)
   ----------------------------------------- */
.t-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.t-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

:root[data-theme="dark"] .t-service-card {
  background: rgba(22, 24, 24, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.t-service-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(var(--accent-rgb), 0.15);
}

.t-service-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.t-service-card__icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.t-service-card:hover .t-service-card__icon-wrapper {
  background: var(--accent-color);
  color: var(--bg-color);
  transform: scale(1.05);
}

.t-service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.t-service-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 992px) {
  .t-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .t-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.t-section--alpine {
  position: relative;
  background-color: var(--bg-color);
  overflow: hidden;
}

:root[data-theme="dark"] .t-section--alpine {
  background-image: linear-gradient(
      to bottom,
      var(--bg-color) 0%,
      transparent 15%,
      transparent 85%,
      var(--bg-color) 100%
    ),
    url('../images/topo-bg-dark.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.t-alpine-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: stretch;
  max-width: 1060px; /* Centered, narrower section layout */
  margin: 0 auto;
}

.t-alpine-log {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.75rem 2.25rem; /* Reduced top/bottom padding to match 410px height */
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 410px; /* Reduced card height */
}

:root[data-theme="dark"] .t-alpine-log {
  background: rgba(22, 24, 24, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.t-alpine-log__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.t-alpine-wheel-container {
  position: relative;
  height: 308px; /* Holds exactly 7 items of 44px each */
  min-height: 308px;
  max-height: 308px;
  flex-shrink: 0; /* Guarantee container cannot shrink under tight layouts */
  width: 100%;
  margin-top: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px; /* Establishes 3D perspective context */
  /* Cylindrical edge-fading gradient */
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* Center selection highlight band */
.t-alpine-wheel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 44px; /* matches item height exactly */
  background: var(--bg-secondary);
  border-top: 1.5px solid var(--border-color);
  border-bottom: 1.5px solid var(--border-color);
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* 3D Drum cylinder */
.t-alpine-drum {
  position: absolute;
  left: 16px; /* Safety margin to prevent 3D clipping on left */
  top: 0;
  width: calc(100% - 32px); /* Center and constrain width for 3D layout scale */
  height: 100%;
  transform-style: preserve-3d;
  z-index: 2;
  pointer-events: none; /* Let clicks pass through to scroll targets */
  will-change: transform;
}

.t-alpine-item {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 22px); /* Vertically centered in the drum */
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Reduced gap */
  padding: 0 1rem; /* Reduced padding */
  height: 44px;
  backface-visibility: hidden; /* Hide items rotated behind the cylinder */
  color: var(--text-muted);
  font-size: 0.76rem; /* Smaller text size to prevent truncation */
  user-select: none;
  transform-origin: center center;
  transition: color 0.2s ease, opacity 0.2s ease;
  will-change: transform, opacity;
}

.t-alpine-item--active {
  color: var(--accent-color) !important;
  font-weight: 400; /* Keep active text normal weight (not bold) */
}

/* Hidden scroll capturing container */
.t-alpine-wheel-scroll {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none; /* Hide Firefox scrollbar */
  -ms-overflow-style: none; /* Hide IE scrollbar */
  z-index: 3; /* Placed on top to capture drag/scroll */
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory; /* Native CSS vertical snapping */
}

.t-alpine-wheel-scroll::-webkit-scrollbar {
  display: none; /* Hide Chrome/Safari scrollbar */
}

.t-alpine-wheel-list {
  display: flex;
  flex-direction: column;
  padding: 132px 0; /* Align first item precisely inside center overlay */
}

/* Invisible scroll snap targets */
.t-alpine-snap-target {
  height: 44px;
  min-height: 44px;
  width: 100%;
  cursor: pointer;
  scroll-snap-align: center;
}
  color: var(--accent-color) !important;
  font-weight: 600;
}

.t-alpine-item__icon {
  flex-shrink: 0;
  color: var(--accent-color);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.t-alpine-item--active .t-alpine-item__icon {
  opacity: 1;
}

.t-alpine-item__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.8;
  width: 70px;
  flex-shrink: 0;
}

.t-alpine-item__title {
  font-family: var(--font-sans);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-alpine-item__coord {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 0.35rem;
  color: var(--text-muted);
}

.t-alpine-item:hover {
  background: rgba(var(--accent-rgb), 0.05);
}

.t-alpine-item__icon {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--accent-color);
  opacity: 0.7;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.t-alpine-item:hover .t-alpine-item__icon {
  opacity: 1;
  transform: translateY(-1px) scale(1.1);
}

.t-alpine-item__date {
  font-family: var(--font-mono);
  font-size: 0.72rem; /* Reduced date text size */
  font-weight: 500;
  color: var(--text-muted);
  width: 58px; /* Reduced width to 58px to give title maximum space */
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.t-alpine-item:hover .t-alpine-item__date {
  color: var(--accent-color);
}

.t-alpine-item__title {
  font-size: 0.76rem; /* Smaller title text to ensure fit without truncation */
  font-weight: 400; /* Keep normal weight (not bold) */
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}

.t-alpine-item__coord {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
  opacity: 0.8;
  margin-left: 0.4rem;
  font-weight: 500;
}

/* Gallery layout */
.t-alpine-gallery {
  height: 410px;
}

.t-alpine-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 193px); /* 193px * 2 + 24px (1.5rem gap) = 410px */
  gap: 1.5rem;
  height: 100%;
}

.t-alpine-gallery__item {
  border-radius: 2rem;
  overflow: hidden;
  border: 3px solid var(--accent-color);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.15);
  position: relative;
  display: block;
  transition: var(--transition-smooth);
}

.t-alpine-gallery__item--large {
  grid-row: span 2;
}

.t-alpine-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.t-alpine-gallery__item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px -10px rgba(var(--accent-rgb), 0.25);
}

.t-alpine-gallery__item:hover .t-alpine-img {
  transform: scale(1.03);
}

/* Responsive design */
@media (max-width: 992px) {
  .t-alpine-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .t-alpine-log,
  .t-alpine-gallery {
    height: auto;
  }
  .t-alpine-gallery__grid {
    grid-template-rows: 240px 240px;
  }
}

@media (max-width: 640px) {
  .t-alpine-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 200px 200px;
  }
  .t-alpine-gallery__item--large {
    grid-row: span 1;
  }
}

/* Alpine Slideshow Crossfade Styles */
.t-alpine-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.t-alpine-img--active {
  position: relative;
  z-index: 1;
}

.t-alpine-img--next {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out, transform 0.6s ease !important;
}

/* Interactive Carabiner Header Styles */
.t-alpine-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
  width: 100%;
  text-align: center;
}

.t-alpine-header__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0;
}

.t-carabiner-img {
  width: 26px;
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0); /* Pure black in light theme */
}

/* Pure white in dark theme */
:root[data-theme="dark"] .t-carabiner-img {
  filter: brightness(0) invert(1);
}

