/* Experience Section Styles */
.experience-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #0a0a0a;
  color: #fff;
  padding: 10vh 5vw;
  display: flex;
  flex-direction: column;
  gap: 8vh;
  overflow: hidden;
}

/* .exp-header-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.exp-main-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6rem, 15vw, 14rem);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  will-change: transform;
}

.exp-indent {
  margin-left: clamp(50px, 15vw, 300px);
  display: inline-block;
  color: #333; 
} */

/* Container for the header */
.exp-header-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Aligns description to bottom of title */
  margin-bottom: 6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1f1f1f; /* Adds a separator line */
}

.exp-title-container {
  display: flex;
  flex-direction: column;
  line-height: 0.85; /* Tighter stacking */
}

/* TOP TEXT: HOLLOW / OUTLINE */
.exp-title-hollow {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #4b4b4b; /* Darker grey stroke for subtlety */
  text-transform: uppercase;
  margin: 0;
  will-change: transform;
}

/* BOTTOM TEXT: SOLID WHITE */
.exp-title-solid {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  will-change: transform;
}

/* Description Text on the right */
.exp-desc-container p {
  font-family: "Space Mono", monospace; /* Tech feel */
  color: #888;
  font-size: 0.9rem;
  text-align: right;
  margin-bottom: 1rem; /* Align visually */
  line-height: 1.5;
}

/* --- 2x2 GRID CONTAINER --- */
.experience-grid {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 clamp(1rem, 5vw, 2rem);
}

/* --- INDIVIDUAL CARDS --- */
.exp-card {
  position: relative;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden; /* Keeps glow and grid inside */
  cursor: default;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, border-color, box-shadow;
  
  /* Defaults for mouse tracking glow */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* 1. Subtle Micro-Grid Background */
.exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
  pointer-events: none;
}

/* 2. Spotlight Cursor Glow Effect */
.exp-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 250px at var(--mouse-x) var(--mouse-y),
    rgba(var(--card-color-rgb), 0.15),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

/* 3. Watermark Numbers */
.exp-watermark {
  position: absolute;
  bottom: -15px;
  right: 15px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 8rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  z-index: 1;
  pointer-events: none;
  line-height: 1;
  transition: all 0.5s ease;
}

/* --- CARD HOVER STATE --- */
.exp-card:hover {
  border-color: var(--card-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--card-color-rgb), 0.15);
}

.exp-card:hover .exp-glow {
  opacity: 1;
}

.exp-card:hover .exp-watermark {
  transform: translateY(-10px) scale(1.05);
  -webkit-text-stroke: 1px rgba(var(--card-color-rgb), 0.3);
}

/* --- CARD CONTENT (Keep above the grid/glow) --- */
.exp-logo, .exp-details {
  position: relative;
  z-index: 2; 
}

/* --- LOGO --- */
.exp-logo {
  width: clamp(60px, 6vw, 80px);
  height: clamp(60px, 6vw, 80px);
  flex-shrink: 0;
  background-color: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.exp-card:hover .exp-logo {
  transform: scale(1.05);
  border-color: rgba(var(--card-color-rgb), 0.5);
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.4s ease;
}

.exp-card:hover .exp-logo img {
  filter: grayscale(0%) opacity(1);
}

/* --- DETAILS --- */
.exp-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exp-role {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 0 0 4px 0;
}

.exp-type {
  font-size: 0.5em;
  color: #666;
  font-family: "Space Mono", monospace;
  vertical-align: middle;
  letter-spacing: 0;
}

.exp-company {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 500;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px 0;
}

/* Use unique dynamic color for duration badge */
.exp-duration {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--card-color); 
  font-weight: 600;
  background: rgba(var(--card-color-rgb), 0.1);
  border: 1px solid rgba(var(--card-color-rgb), 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
  transition: background 0.3s ease;
}

.exp-card:hover .exp-duration {
  background: rgba(var(--card-color-rgb), 0.2);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .exp-card {
    flex-direction: column; 
    align-items: flex-start;
    text-align: left;
  }
}

/* Responsive: Stack description below title on mobile */
@media (max-width: 768px) {
  .exp-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    border-bottom: none;
    margin-bottom: 4rem;
  }
  
  .exp-desc-container p {
    text-align: left;
  }

  /* Make outline thinner on mobile */
  .exp-title-hollow {
    -webkit-text-stroke: 1px #4b4b4b; 
  }
}

.experience-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding-left: 2rem;
}

/* The vertical line */
.experience-line {
  position: absolute;
  left: 2rem; /* Aligns with dot center */
  top: 2rem;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.experience-item {
  position: relative;
  width: 100%;
  padding-left: 4rem;
  display: flex;
  flex-direction: column;
}

/* The timeline dot */
.exp-dot {
  position: absolute;
  left: -6px; /* Center on line (2rem - half width) */
  top: 10px;
  width: 12px;
  height: 12px;
  background-color: #0a0a0a;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
}

.experience-item:hover .exp-dot {
  background-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.exp-content {
  background: #141414;
  border: 1px solid #262626;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 12px;
  transition: all 0.3s ease;
  will-change: transform;
}

.experience-item:hover .exp-content {
  border-color: #404040;
  transform: translateX(10px);
}

.exp-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.exp-role {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  letter-spacing: 1px;
}

.exp-type {
  font-size: 0.6em;
  color: #666;
  font-family: "Space Mono", monospace;
  vertical-align: middle;
}

.exp-duration {
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.exp-company {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #888;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.exp-bullets li {
  font-family: "Inter", sans-serif;
  color: #ccc;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.exp-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #3b82f6;
}

.exp-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.exp-tag {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: #aaa;
  border: 1px solid #333;
  padding: 4px 10px;
  border-radius: 4px;
  transition: 0.2s;
}

.experience-item:hover .exp-tag {
  border-color: #555;
  color: #fff;
}

@media (max-width: 768px) {
  .experience-container {
    padding-left: 0;
  }
  .experience-line {
    left: 14px;
  }
  .exp-dot {
    left: 8px; /* 14px - 6px */
  }
  .experience-item {
    padding-left: 2.5rem;
  }
  .exp-indent {
    margin-left: 0;
  }
  .exp-top-row {
    flex-direction: column;
    gap: 0.2rem;
  }
  .exp-duration {
    font-size: 0.8rem;
    padding: 2px 8px;
  }
}