/*#region Experience Pages Base Styles */

/* FIX: Prevent any hover-triggered borders at top of page */
body::before,
body::after,
html::before,
html::after {
  display: none !important;
}



/* Prevent any sticky/fixed elements from showing borders */
*[style*="position: fixed"],
*[style*="position: sticky"],
.sidebar,
aside,
header,
nav,
.section,
section,
main {
  border-top: none !important;
}

.gallery-item,
.image-container,
.feature-image,
.triptych-item {
  border: 1px solid var(--border) !important;
  border-top: 1px solid var(--border) !important;
}

/* Prevent sidebar top border */
.sidebar::before,
.sidebar::after,
aside::before,
aside::after {
  border: none !important;
  display: none !important;
}

/* Hero Section */
.exp-hero-background {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  position: relative;
  border: none; /* FIX: Prevent any borders */
  outline: none; /* FIX: Prevent outlines */
}
.exp-hero-background::before,
.exp-hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 99%, var(--bg) 100%),
    radial-gradient(circle at 50% 40%, rgba(79,124,172,0.3), transparent 70%);
  mix-blend-mode: soft-light;
}


.exp-hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(79, 124, 172, 0.3), transparent 70%);
  mix-blend-mode: soft-light;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),rgba(79, 124, 172, 0.25);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  border: none; /* FIX: Prevent any borders */
  outline: none; /* FIX: Prevent outlines */
}
.hero-overlay::before,
.hero-overlay::after {
  border: none !important; /* FIX: Prevent borders on pseudo-elements */
  outline: none !important;
}
.exp-hero-circle {
  width: 22vh;
  height: 22vh;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: none; /* FIX: Prevent any borders */
  outline: none; /* FIX: Prevent outlines */
}
.exp-hero-circle::before,
.exp-hero-circle::after {
  border: none !important;
  outline: none !important;
}
.exp-hero-circle img {
  width: 200%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3));
  border: none; /* FIX: Prevent any borders */
  outline: none; /* FIX: Prevent outlines */
}

/* FIX: Prevent any horizontal lines in hero section */
.exp-hero-background *,
.exp-hero-background *::before,
.exp-hero-background *::after {
  border-top: none !important;
  border-bottom: none !important;
}

/* Company Overview */
.company-overview {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}
.company-overview h2 {
  font-size: 28px;
  margin: 0 0 16px 0;
  text-decoration: none; /* FIX: Prevent underline */
  border-bottom: none; /* FIX: Prevent bottom border */
}
.company-overview h2:hover {
  text-decoration: none; /* FIX: Prevent underline on hover */
  border-bottom: none; /* FIX: Prevent bottom border on hover */
}
.company-overview p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 16px 0;
}
.company-overview p:last-child {
  margin: 0;
}

/* Content Grid & Blocks */
.content-grid {
  display: grid;
  gap: 48px;
  margin-bottom: 48px;
}
.content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: center;
}
@media (min-width: 768px) {
  .content-block {
    grid-template-columns: 1fr 1fr;
  }
  .content-block.reverse {
    direction: rtl;
  }
  .content-block.reverse > * {
    direction: ltr;
  }
}

/* Content Text */
.content-text h3 {
  font-size: 28px;
  margin: 0 0 20px 0;
  color: var(--text);
  text-decoration: none; /* FIX: Prevent underline */
  border-bottom: none; /* FIX: Prevent bottom border */
}
.content-text h3:hover {
  text-decoration: none; /* FIX: Prevent underline on hover */
  border-bottom: none; /* FIX: Prevent bottom border on hover */
}
.content-text p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 20px 0;
}
.content-text ul {
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
}
.content-text li {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* Images - ALL have padding/border now */
.image-container {
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 50%, #0f172a 100%);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-container img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 12px;
  object-fit: cover;
}
.second-container {
  border-radius: var(--radius);
  border: 2px solid #e2e8f0;
  overflow: hidden;
}

/* Feature Image - Large single images */
.feature-image {
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 50%, #0f172a 100%);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: 500px;
}
.feature-image img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* Technical drawings special styling */
.image-container .technical-drawing {
  transform: scale(1.2);
  object-position: 35% top;
  min-height: 600px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
}

/* Image Placeholder */
.image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* Triptych - Three images side by side */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 60px 0;
}
.triptych-item {
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 50%, #0f172a 100%);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}
.triptych-item img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Component Gallery */
.gallery-section {
  background: white;
  padding: 80px 24px;
  margin: 80px 0;
}
.gallery-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.gallery-header h2 {
  font-size: 36px;
  margin: 0 0 16px 0;
  text-decoration: none; /* FIX: Prevent underline */
  border-bottom: none; /* FIX: Prevent bottom border */
}
.gallery-header h2:hover {
  text-decoration: none; /* FIX: Prevent underline on hover */
  border-bottom: none; /* FIX: Prevent bottom border on hover */
}
.gallery-header p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.component-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  /* FIX: No padding for gallery images - they go edge-to-edge */
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.gallery-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8fafc;
  /* FIX: No padding - images fill the space */
}
.gallery-image img {
  width: 100%;
  height: 100%;
  /* FIX: No border-radius - images go to edges */
  object-fit: cover;
}
.gallery-caption {
  padding: 20px;
  text-align: center;
}
.gallery-caption h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none; /* FIX: Prevent underline */
  border-bottom: none; /* FIX: Prevent bottom border */
}
.gallery-caption h4:hover {
  text-decoration: none; /* FIX: Prevent underline on hover */
  border-bottom: none; /* FIX: Prevent bottom border on hover */
}
.gallery-caption p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Skills Section */
.skills-section {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  margin-bottom: 64px;
}
.skills-section h2 {
  font-size: 28px;
  margin: 0 0 40px 0;
  text-align: center;
  text-decoration: none; /* FIX: Prevent underline */
  border-bottom: none; /* FIX: Prevent bottom border */
}
.skills-section h2:hover {
  text-decoration: none; /* FIX: Prevent underline on hover */
  border-bottom: none; /* FIX: Prevent bottom border on hover */
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.skill-item {
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid #2c5282;
  transition: transform 0.2s;
}
.skill-item:hover {
  transform: translateY(-2px);
}
.skill-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 24px;
  color: var(--color--blue01);
}
.skill-item h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  text-decoration: none; /* FIX: Prevent underline */
  border-bottom: none; /* FIX: Prevent bottom border */
}
.skill-item h4:hover {
  text-decoration: none; /* FIX: Prevent underline on hover */
  border-bottom: none; /* FIX: Prevent bottom border on hover */
}
.skill-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Navigation Between Experiences */
.navigation-title {
  text-align: center;
  margin-bottom: 48px;
}
.navigation-title h2 {
  font-size: 32px;
  margin: 0;
  font-weight: 700;
  text-decoration: none; /* FIX: Prevent underline */
  border-bottom: none; /* FIX: Prevent bottom border */
}
.navigation-title h2:hover {
  text-decoration: none; /* FIX: Prevent underline on hover */
  border-bottom: none; /* FIX: Prevent bottom border on hover */
}
.next-experience-card {
  margin: 0 auto 32px;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  color: white;
  transition: all 0.3s ease;
}
.next-experience-card.size-large {
  max-width: 900px;
}
.next-experience-card.size-small {
  max-width: 700px;
  padding: 36px;
}
.next-experience-card.timeline-previous {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
}
.next-experience-card.timeline-forward {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}
.next-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 20px;
  font-weight: 600;
}
.next-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
/* FIX: Timeline-forward button goes on the RIGHT */
.next-content.button-left {
  flex-direction: row; /* Changed from row-reverse */
}
.next-text h3 {
  font-size: 28px;
  margin-bottom: 8px;
  text-decoration: none; /* FIX: Prevent underline */
  border-bottom: none; /* FIX: Prevent bottom border */
}
.next-text h3:hover {
  text-decoration: none; /* FIX: Prevent underline on hover */
  border-bottom: none; /* FIX: Prevent bottom border on hover */
}
.size-small .next-text h3 {
  font-size: 24px;
}
.next-text .role {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 12px;
}
.next-text .description {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.6;
}
.size-small .next-text .description {
  font-size: 14px;
}
.next-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.timeline-previous .next-button {
  color: #1e3a8a;
}
.timeline-forward .next-button {
  color: #fa709a;
}
.next-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Timeline Divider */
.timeline-divider {
  text-align: center;
  margin: 32px auto;
  position: relative;
  max-width: 900px;
}
.timeline-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.timeline-divider span {
  position: relative;
  background: var(--bg);
  padding: 0 20px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* Lightbox Modal for Image Popups */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}
.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.lightbox-close:hover {
  color: #ccc;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Image Lightbox for Gallery Popups */
.image-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.image-lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
  line-height: 1;
}

.lightbox-close:hover {
  color: #ccc;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*#endregion*/