/* -----------------------------------------
   HERO SECTION (FIXED POSITION, NO DRIFT)
------------------------------------------ */
.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(16px, 4vh, 32px);
  margin-bottom: 48px;
}

/* -----------------------------------------
   ORANGE HERO SQUARE (SCALES SAFELY)
------------------------------------------ */
.hero-bg {
  position: relative;
  width: min(75vw, 380px);
  aspect-ratio: 1 / 1;
  background: #ff7e00;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(255, 126, 0, 0.45);
}

/* -----------------------------------------
   HERO IMAGES (CROSSFADE)
------------------------------------------ */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.hero-img.active {
  opacity: 1;
}

/* -----------------------------------------
   DESKTOP CAP
------------------------------------------ */
@media (min-width: 1024px) {
  .hero-bg {
    width: 340px;
  }
}

/* -----------------------------------------
   HERO TEXT OVERLAY
------------------------------------------ */
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  pointer-events: none;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000;
  align-self: center;
  text-shadow:
    0 0 6px rgba(255, 126, 0, 0.9),
    0 0 14px rgba(255, 126, 0, 0.6),
    0 0 28px rgba(255, 126, 0, 0.35);
  mix-blend-mode: overlay;
}

.hero-subtitle {
  position: relative;
  font-size: clamp(0.9rem, 2.4vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  align-self: center;
  color: #ff7e00;
  padding: 14px 28px;
  text-shadow:
    0 0 5px rgba(255, 126, 0, 0.85),
    0 0 12px rgba(255, 126, 0, 0.55),
    0 0 22px rgba(255, 126, 0, 0.35);
  mix-blend-mode: overlay;
  z-index: 1;
}

/* -----------------------------------------
   HERO GRADIENT
------------------------------------------ */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.35) 65%,
    rgba(0, 0, 0, 0.85) 85%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 4;
  pointer-events: none;
}

/* -----------------------------------------
   ABOUT SECTION
------------------------------------------ */
.about {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 72px 16px 96px;
}

.about-inner {
  width: 100%;
  max-width: 720px;
  color: white;
  font-family: "Courier New", Courier, monospace;
}

.about-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-align: center;
  color: #ff7e00;
  text-shadow:
    0 0 6px rgba(255, 126, 0, 0.5),
    0 0 14px rgba(255, 126, 0, 0.25);
}

.about-text p {
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.9;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.88);
}

/* Subtle emphasis */
.about-text .highlight {
  color: #7cfc00;
  text-shadow: 0 0 6px rgba(124, 252, 0, 0.35);
}

/* Slight visual anchor on large screens */
@media (min-width: 900px) {
  .about-inner {
    padding-left: 24px;
    border-left: 2px solid rgba(255, 126, 0, 0.35);
  }
}


/* -----------------------------------------
   EXPERIENCE SECTION
------------------------------------------ */
.experience {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 72px 16px 120px;
}

.experience-inner {
  width: 100%;
  max-width: 820px;
  color: white;
  font-family: "Courier New", Courier, monospace;
}

/* Section title */
.experience-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;

  margin-bottom: 56px;
  color: #ff7e00;
  text-shadow:
    0 0 6px rgba(255, 126, 0, 0.5),
    0 0 14px rgba(255, 126, 0, 0.25);
}

/* Skills & Experiences title with icon */
.experience-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px; /* space between icon and text */
}

/* Icon beside title */
.experience-title-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.experience-title-icon {
  filter: drop-shadow(0 0 6px rgba(255, 126, 0, 0.45));
}

.experience-item {
  padding-left: 24px;
  margin-bottom: 56px;
  border-left: 2px solid rgba(255, 126, 0, 0.35);
}

.experience-role {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.experience-role span {
  color: #7cfc00;
  font-weight: 600;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 18px;
}

.experience-date {
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.experience-classification {
  color: #ff7e00;
  letter-spacing: 0.1em;
}

.experience-description {
  font-size: clamp(0.95rem, 2.3vw, 1.05rem);
  line-height: 1.85;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}

/* Reuse highlight from About */
.experience-description .highlight {
  color: #7cfc00;
  text-shadow: 0 0 6px rgba(124, 252, 0, 0.35);
}


.publication-link {
  display: inline-block;
  margin-bottom: 18px;

  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #7cfc00;
  text-decoration: none;

  text-shadow: 0 0 6px rgba(124, 252, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.publication-link:hover {
  opacity: 0.7;
  transform: translateX(4px);
}


/* -----------------------------------------
   EXPERIENCE SKILLS CAROUSEL
------------------------------------------ */

.experience-skills-carousel {
  margin: 14px 0 22px;
  overflow-x: auto;
  overflow-y: hidden;

  /* smooth scrolling */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* hide scrollbar (still scrollable) */
.experience-skills-carousel::-webkit-scrollbar {
  display: none;
}
.experience-skills-carousel {
  scrollbar-width: none; /* Firefox */
}

.skills-track {
  display: flex;
  gap: 12px;
  padding: 4px 2px;
  width: max-content;
}

.skill-logo {
  width: 48px;
  height: 48px;
  background: #d9d9d9;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.skill-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Optional subtle hover polish */
.skill-logo:hover {
  transform: scale(1.08);
  transition: transform 0.2s ease;
}


/* -----------------------------------------
   SKILL LIGHTBOX POPUP
------------------------------------------ */

.skill-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 95000;
}

.skill-lightbox.hidden,
.lightbox-media.hidden {
  display: none;
}

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

.skill-lightbox-inner img {
  max-width: 80vw;
  max-height: 80vh;
  background: #d9d9d9;
  padding: 18px;
}

/* Close button */
.skill-close {
  position: absolute;
  top: -12px;
  right: -12px;

  background: #000;
  color: #fff;
  border: 2px solid #ff7e00;

  font-size: 2rem;
  width: 42px;
  height: 42px;

  cursor: pointer;
}

.skill-close {
  z-index: 5;
  pointer-events: auto;
}

#skill-lightbox-video {
  max-width: 80vw;
  max-height: 80vh;
  background: #000;
  border-radius: 6px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 2px rgba(255, 126, 0, 0.65),
    0 0 32px rgba(0, 0, 0, 0.85);
  outline: none;
}

@media (max-width: 600px) {
  #skill-lightbox-video {
    max-width: 92vw;
    max-height: 70vh;
  }
}


/* Navigation arrows — edge-mounted & subtle */
.skill-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0, 0, 0, 0.35); /* 👈 reduced opacity */
  border: 1.5px solid rgba(255, 126, 0, 0.7);
  color: rgba(255, 126, 0, 0.85);

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.9rem;
  cursor: pointer;
  user-select: none;

  z-index: 2;
  transition: opacity 0.2s ease, background 0.2s ease;
}

/* Left arrow — flush to inner edge */
.skill-nav.prev {
  left: 0;
  transform: translate(-50%, -50%);
}

/* Right arrow — flush to inner edge */
.skill-nav.next {
  right: 0;
  transform: translate(50%, -50%);
}

/* Hover / focus affordance */
.skill-nav:hover {
  background: rgba(0, 0, 0, 0.55);
  opacity: 1;
}

/* Mobile tuning */
@media (max-width: 600px) {
  .skill-nav {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}


/* -----------------------------------------
   EXPERIENCE GALLERY
------------------------------------------ */
.experience-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 32px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
  cursor: pointer;
}

/* Images */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Videos */
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Unified hover */
.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Play indicator */
.gallery-item.video::before {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.gallery-item.video:hover::before {
  opacity: 1;
}

.gallery-item::after {
  content: "↗";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}


/* -----------------------------------------
   EXPERIENCE GALLERY — RESPONSIVE FIX
------------------------------------------ */

/* Default (desktop stays as-is) */
.experience-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 32px;
}

/* Tablet */
@media (max-width: 900px) {
  .experience-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }

  .gallery-item {
    aspect-ratio: 16 / 11;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .experience-gallery {
    grid-template-columns: repeat(2, 1fr); /* force 2 columns */
    gap: 12px;
    margin: 20px 0 24px;
  }

  .gallery-item {
    aspect-ratio: 4 / 3; /* shorter tiles */
  }

  .gallery-item::after {
    font-size: 1rem; /* smaller ↗ icon */
  }

  .gallery-item.video::before {
    font-size: 2.2rem; /* smaller play icon */
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .experience-gallery {
    gap: 10px;
  }
}
