/* ==========================================================================
   FOREIGNCODER — TEAM MEMBER VIEW (AMBER AVIATION THEME)
   ========================================================================== */

:root {
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #eff6ff;
  --primary-navy: #081C3A;
  --accent-teal: #10CFC9;
  --accent-teal-dark: #0d9b96;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 12px rgba(8, 28, 58, 0.06);
  --shadow-lg: 0 16px 40px rgba(8, 28, 58, 0.12);
  --transition-smooth: 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(145deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Subtle Decorative Glow */
body::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(16, 207, 201, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   TOP MINIMAL HEADER
   ========================================================================== */
.top-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .top-header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  border-radius: 6px;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 0.04em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb .icon-home {
  font-size: 18px;
  color: var(--text-light);
}

.breadcrumb .current {
  color: var(--primary-navy);
  font-weight: 600;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 207, 201, 0.1);
  color: var(--accent-teal-dark);
  border: 1px solid rgba(16, 207, 201, 0.3);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 250ms ease;
}

.btn-control:hover {
  background: var(--accent-teal);
  color: #fff;
  border-color: var(--accent-teal);
  box-shadow: 0 4px 12px rgba(16, 207, 201, 0.3);
}

.btn-control.paused {
  background: #f1f5f9;
  color: var(--text-muted);
  border-color: #cbd5e1;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-navy);
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  transition: all 200ms ease;
}

.btn-back:hover {
  border-color: var(--primary-navy);
  background: var(--surface-alt);
}

@media (max-width: 640px) {
  .breadcrumb { display: none; }
  .btn-text { display: none; }
  .hide-mobile { display: none; }
}

/* ==========================================================================
   MAIN SHOWCASE AREA
   ========================================================================== */
.showcase-container {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 60px 180px;
}

@media (max-width: 1024px) {
  .showcase-container {
    padding: 30px 40px 220px;
  }
}

@media (max-width: 640px) {
  .showcase-container {
    padding: 20px 20px 260px;
  }
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: var(--shadow-sm);
  transition: all 250ms ease;
}

.nav-arrow:hover {
  background: var(--primary-navy);
  color: #fff;
  border-color: var(--primary-navy);
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-lg);
}

.nav-arrow--left { left: 24px; }
.nav-arrow--right { right: 24px; }

@media (max-width: 768px) {
  .nav-arrow {
    width: 44px;
    height: 44px;
  }
  .nav-arrow--left { left: 12px; }
  .nav-arrow--right { right: 12px; }
}

/* Slide Content Layout */
.slide-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
  transition: opacity 350ms ease, transform 350ms ease;
}

@media (max-width: 960px) {
  .slide-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
}

/* Slide Info (Left Column) */
.slide-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 650px;
}

@media (max-width: 960px) {
  .slide-info {
    margin: 0 auto;
    align-items: center;
  }
}

.member-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.member-role {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.member-bio {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 580px;
}

/* Member Metadata Row */
.member-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
}

@media (max-width: 960px) {
  .member-details {
    justify-content: center;
  }
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.detail-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--primary-navy);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.detail-label .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent-teal);
}

.detail-value {
  font-weight: 500;
  color: var(--text-main);
}

.detail-value--chip {
  background: rgba(16, 207, 201, 0.12);
  color: var(--accent-teal-dark);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 13px;
}

.detail-link {
  color: var(--primary-navy);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-teal);
  transition: color 200ms ease;
}

.detail-link:hover {
  color: var(--accent-teal-dark);
}

/* Action Buttons */
.member-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 250ms ease;
}

.btn-action .material-symbols-outlined {
  font-size: 20px;
}

.btn-github {
  background: var(--primary-navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 28, 58, 0.2);
}

.btn-github:hover {
  background: #0f2d5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 28, 58, 0.3);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1faf53;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* Slide Visual (Right Column Portrait) */
.slide-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.photo-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (max-width: 960px) {
  .photo-container {
    height: 380px;
    max-width: 320px;
  }
}

/* Decorative backdrop circle behind portrait */
.photo-container::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 207, 201, 0.15), rgba(8, 28, 58, 0.05));
  z-index: 1;
}

@media (max-width: 960px) {
  .photo-container::before {
    width: 260px;
    height: 260px;
  }
}

.member-photo {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 15px 35px rgba(8, 28, 58, 0.2));
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   BOTTOM THUMBNAIL BAR (AMBER AVIATION FROSTED FOOTER)
   ========================================================================== */
.thumbnail-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 60%, transparent 100%);
  backdrop-filter: blur(14px);
  padding: 24px 32px 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 -10px 30px rgba(8, 28, 58, 0.05);
}

.thumbnail-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 6px;
}

@media (max-width: 1024px) {
  .thumbnail-list {
    gap: 16px;
    justify-content: flex-start;
  }
}

/* Individual Thumbnail Item */
.thumb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 16px;
  transition: all 300ms cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 120px;
  position: relative;
}

.thumb-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.7);
}

/* Active Thumbnail State */
.thumb-item.active {
  transform: translateY(-8px);
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(8, 28, 58, 0.1);
}

/* Accent top indicator for active member */
.thumb-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 10px;
  background: var(--accent-teal);
}

.thumb-avatar-wrap {
  position: relative;
  margin-bottom: 10px;
}

.thumb-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 300ms ease;
  background: #f8fafc;
}

.thumb-item.active .thumb-avatar {
  border-color: var(--accent-teal);
  box-shadow: 0 6px 18px rgba(16, 207, 201, 0.3);
  transform: scale(1.08);
}

.thumb-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 3px;
  transition: color 250ms ease;
}

.thumb-item.active .thumb-name {
  color: var(--primary-navy);
}

.thumb-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-item.active .thumb-role {
  color: var(--accent-teal-dark);
  font-weight: 600;
}

/* ==========================================================================
   ANIMATION / TRANSITION HELPER CLASSES
   ========================================================================== */
.slide-content.fade-out {
  opacity: 0;
  transform: translateY(12px) scale(0.99);
}

.slide-content.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   ADVANCED ALL-SCREEN RESPONSIVE SYSTEM (DESKTOP, TABLET, MOBILE, MINI-MOBILE)
   ========================================================================== */

/* 1. Large Table / Standard Laptop (768px to 1024px) */
@media (max-width: 1024px) {
  .showcase-container {
    padding: 30px 40px 200px;
  }
  .slide-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .slide-info {
    order: 2;
    margin: 0 auto;
    align-items: center;
  }
  .slide-visual {
    order: 1;
    margin: 0 auto;
  }
  .photo-container {
    height: 380px;
    max-width: 360px;
  }
  .member-details {
    justify-content: center;
  }
  .member-actions {
    justify-content: center;
  }
  .nav-arrow {
    top: 250px;
  }
}

/* 2. Mobile Landscape & Medium Mobile (480px to 768px) */
@media (max-width: 768px) {
  .top-header {
    padding: 10px 16px;
  }
  .brand-logo {
    height: 32px;
  }
  .brand-name {
    font-size: 17px;
  }
  .showcase-container {
    padding: 20px 20px 180px;
  }
  .nav-arrow {
    width: 44px;
    height: 44px;
    top: 210px;
  }
  .nav-arrow--left { left: 8px; }
  .nav-arrow--right { right: 8px; }
  .photo-container {
    height: 300px;
    max-width: 280px;
  }
  .photo-container::before {
    width: 220px;
    height: 220px;
  }
  .member-name {
    font-size: 38px;
  }
  .member-role {
    font-size: 18px;
  }
  .member-bio {
    font-size: 15px;
    max-width: 100%;
  }
  .member-details {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 16px;
  }
  .thumbnail-bar {
    padding: 16px 16px 20px;
  }
  .thumbnail-list {
    gap: 12px;
  }
  .thumb-item {
    min-width: 90px;
    padding: 8px 10px;
  }
  .thumb-avatar {
    width: 52px;
    height: 52px;
  }
}

/* 3. Small Mobile Phones (<= 480px - iPhone 14/15, SE, Android) */
@media (max-width: 480px) {
  .top-header {
    padding: 10px 12px;
  }
  .brand-name {
    font-size: 15px;
  }
  .btn-back {
    padding: 6px 10px;
    font-size: 12px;
  }
  .btn-control {
    padding: 6px 10px;
    font-size: 12px;
  }
  .showcase-container {
    padding: 12px 12px 160px;
  }
  .nav-arrow {
    width: 38px;
    height: 38px;
    top: 155px;
  }
  .nav-arrow--left { left: 4px; }
  .nav-arrow--right { right: 4px; }
  .photo-container {
    height: 250px;
    max-width: 230px;
  }
  .photo-container::before {
    width: 180px;
    height: 180px;
  }
  .member-name {
    font-size: 30px;
  }
  .member-role {
    font-size: 16px;
  }
  .member-bio {
    font-size: 14px;
    line-height: 1.6;
  }
  .member-details {
    padding: 12px;
    gap: 10px;
  }
  .detail-row {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .detail-value,
  .detail-link {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 13px;
  }
  .member-actions {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .btn-action {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .thumbnail-bar {
    padding: 12px 10px 16px;
  }
  .thumbnail-list {
    gap: 8px;
    justify-content: flex-start;
  }
  .thumb-item {
    min-width: 76px;
    padding: 6px 6px;
  }
  .thumb-avatar {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }
  .thumb-name {
    font-size: 11px;
  }
  .thumb-role {
    font-size: 9px;
    max-width: 72px;
  }
}

/* 4. Ultra-Small Screens (<= 360px - Galaxy S SE, Fold screens) */
@media (max-width: 360px) {
  .showcase-container {
    padding: 10px 8px 150px;
  }
  .photo-container {
    height: 210px;
    max-width: 190px;
  }
  .photo-container::before {
    width: 150px;
    height: 150px;
  }
  .member-name {
    font-size: 24px;
  }
  .nav-arrow {
    width: 34px;
    height: 34px;
    top: 135px;
  }
  .thumb-item {
    min-width: 70px;
  }
  .thumb-avatar {
    width: 40px;
    height: 40px;
  }
}

/* Hide webkit scrollbar on thumbnails for native swipe experience */
.thumbnail-list::-webkit-scrollbar {
  display: none;
}
.thumbnail-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
