/* === BANNER STYLES === */
.banner-link {
  display: flex;
  flex-direction: column;
  width: 390px;
  height: 300px;
  margin-top: 35px;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 50%, #0d2137 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.banner-link:hover {
  box-shadow: 0 8px 32px rgba(0,180,180,0.25);
  transform: translateY(-2px);
}

/* grid bg */
.banner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,200,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,200,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* === TABS === */
.banner-tabs {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 0;
  padding: 16px 24px 0;
}
.banner-tab {
  position: relative;
  background: none;
  border: none;
  color: #4e6478;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: inherit;
}
.banner-tab:hover {
  color: #8fa6bc;
}
.banner-tab.is-active {
  color: #e8edf3;
}
.banner-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #5de4c7, #89ddff);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
}
.banner-tab-indicator.is-landing {
  background: linear-gradient(90deg, #ffcb6b, #f78c6c);
}
.banner-tabs-track {
  position: relative;
  display: flex;
}

/* === SLIDE CONTENT === */
.banner-slides {
  position: relative;
  z-index: 2;
  padding: 18px 32px 28px;
  flex: 1;
  overflow: hidden;
}
.banner-slide {
  position: absolute;
  top: 18px;
  left: 32px;
  right: 32px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.banner-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.banner-slide.exit-left {
  opacity: 0;
  transform: translateX(-20px);
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(93,228,199,0.25);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 12px;
}
.banner-badge svg { flex-shrink: 0; }
.banner-badge--portfolio {
  background: rgba(93,228,199,0.12);
  color: #5de4c7;
}
.banner-badge--landing {
  background: rgba(255,203,107,0.12);
  color: #ffcb6b;
  border-color: rgba(255,203,107,0.25);
}

.banner-title {
  color: #e8edf3;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  max-width: 240px;
}
.banner-title span.t-portfolio {
  background: linear-gradient(90deg, #5de4c7, #89ddff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.banner-title span.t-landing {
  background: linear-gradient(90deg, #ffcb6b, #f78c6c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-desc {
  color: #7a8fa6;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 240px;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  width: fit-content;
  letter-spacing: 0.02em;
  transition: gap 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.banner-cta--portfolio {
  color: #fff;
  background: rgba(93,228,199,0.15);
  border: 1px solid rgba(93,228,199,0.35);
  box-shadow: 0 0 12px rgba(93,228,199,0.08);
}
.banner-cta--landing {
  color: #fff;
  background: rgba(255,203,107,0.15);
  border: 1px solid rgba(255,203,107,0.35);
  box-shadow: 0 0 12px rgba(255,203,107,0.08);
}
.banner-link:hover .banner-slide.is-active .banner-cta--portfolio {
  gap: 12px;
  background: rgba(93,228,199,0.22);
  box-shadow: 0 0 20px rgba(93,228,199,0.2);
}
.banner-link:hover .banner-slide.is-active .banner-cta--landing {
  gap: 12px;
  background: rgba(255,203,107,0.22);
  box-shadow: 0 0 20px rgba(255,203,107,0.2);
}
.banner-cta svg {
  transition: transform 0.3s ease;
}
.banner-link:hover .banner-slide.is-active .banner-cta svg {
  transform: translateX(2px);
}

/* === SHAPE CONTAINER (shared) === */
.banner-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.banner-shape.is-active { opacity: 1; }

/* === SHAPE 1: Portfolio — portfolio site wireframe with sidebar + gallery === */
.port-browser {
  position: absolute;
  width: 155px; height: 220px;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  border: 1px solid rgba(93,228,199,0.18);
  background: rgba(93,228,199,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: portFloat 10s ease-in-out infinite;
}
/* browser bar */
.port-bar {
  height: 18px;
  border-bottom: 1px solid rgba(93,228,199,0.1);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
  flex-shrink: 0;
}
.port-bar-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
}
.port-bar-dot:nth-child(1) { background: rgba(93,228,199,0.35); }
.port-bar-dot:nth-child(2) { background: rgba(137,221,255,0.3); }
.port-bar-dot:nth-child(3) { background: rgba(199,146,234,0.25); }
.port-bar-url {
  margin-left: 6px;
  width: 45px; height: 3px;
  border-radius: 2px;
  background: rgba(93,228,199,0.1);
}

/* body = sidebar + main */
.port-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* sidebar */
.port-sidebar {
  width: 30px;
  border-right: 1px solid rgba(93,228,199,0.08);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.port-nav-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(93,228,199,0.15);
  position: relative;
}
.port-nav-dot.is-active-dot {
  border-color: rgba(93,228,199,0.35);
  background: rgba(93,228,199,0.08);
}
.port-nav-dot.is-active-dot::after {
  content: '';
  position: absolute;
  left: -6px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 10px;
  border-radius: 2px;
  background: rgba(93,228,199,0.4);
}
.port-nav-line {
  width: 12px; height: 2px;
  border-radius: 2px;
  background: rgba(93,228,199,0.08);
}

/* main content area */
.port-main {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* profile header */
.port-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(93,228,199,0.06);
  animation: sectionPulse 8s ease-in-out infinite;
}
.port-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(93,228,199,0.3);
  position: relative;
  flex-shrink: 0;
}
.port-avatar::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(93,228,199,0.2);
}
.port-profile-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.port-profile-line {
  height: 2px;
  border-radius: 2px;
}
.port-profile-line:nth-child(1) { width: 40px; background: rgba(93,228,199,0.25); }
.port-profile-line:nth-child(2) { width: 28px; background: rgba(137,221,255,0.15); }

/* project gallery grid */
.port-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  flex: 1;
}
.port-project {
  border-radius: 4px;
  border: 1px solid rgba(93,228,199,0.1);
  background: rgba(93,228,199,0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.port-project-img {
  flex: 1;
  background: rgba(93,228,199,0.05);
  border-bottom: 1px solid rgba(93,228,199,0.06);
  position: relative;
}
.port-project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(93,228,199,0.06) 40%, rgba(93,228,199,0.06) 42%, transparent 42%);
}
.port-project-label {
  height: 10px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
}
.port-project-label-line {
  width: 70%;
  height: 2px;
  border-radius: 2px;
  background: rgba(93,228,199,0.12);
}

.port-project:nth-child(1) { animation: sectionPulse 8s ease-in-out 0.5s infinite; }
.port-project:nth-child(2) { animation: sectionPulse 8s ease-in-out 1.5s infinite; }
.port-project:nth-child(3) { animation: sectionPulse 8s ease-in-out 2.5s infinite; }
.port-project:nth-child(4) { animation: sectionPulse 8s ease-in-out 3.5s infinite; }

/* colors vary per project */
.port-project:nth-child(2) { border-color: rgba(137,221,255,0.1); }
.port-project:nth-child(2) .port-project-img { background: rgba(137,221,255,0.04); }
.port-project:nth-child(2) .port-project-img::after {
  background: linear-gradient(135deg, transparent 40%, rgba(137,221,255,0.06) 40%, rgba(137,221,255,0.06) 42%, transparent 42%);
}
.port-project:nth-child(3) { border-color: rgba(199,146,234,0.1); }
.port-project:nth-child(3) .port-project-img { background: rgba(199,146,234,0.04); }
.port-project:nth-child(3) .port-project-img::after {
  background: linear-gradient(135deg, transparent 40%, rgba(199,146,234,0.06) 40%, rgba(199,146,234,0.06) 42%, transparent 42%);
}
.port-project:nth-child(4) { border-color: rgba(93,228,199,0.1); }

/* glow */
.port-glow {
  position: absolute;
  width: 180px; height: 180px;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,228,199,0.07) 0%, transparent 70%);
  animation: subtlePulse 8s ease-in-out infinite;
}

/* floating cursor */
.port-cursor {
  position: absolute;
  right: 50px; top: 60%;
  width: 12px; height: 12px;
  animation: cursorMove 8s ease-in-out infinite;
}
.port-cursor::before {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-left: 5px solid rgba(93,228,199,0.5);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-right: 3px solid transparent;
  transform: rotate(-30deg);
}
.port-cursor::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(93,228,199,0.08);
  animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes portFloat {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50% { transform: translateY(-50%) translateY(-4px); }
}
@keyframes cursorMove {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-20px, -15px); }
  50% { transform: translate(-35px, 5px); }
  75% { transform: translate(-10px, 12px); }
}
@keyframes subtlePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* === SHAPE 2: Landing — browser wireframe with sections === */
.land-browser {
  position: absolute;
  width: 150px; height: 210px;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  border: 1px solid rgba(255,203,107,0.18);
  background: rgba(255,203,107,0.03);
  overflow: hidden;
  animation: browserFloat 10s ease-in-out infinite;
}
/* browser top bar */
.land-bar {
  height: 18px;
  border-bottom: 1px solid rgba(255,203,107,0.1);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}
.land-bar-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,203,107,0.3);
}
.land-bar-dot:nth-child(2) { background: rgba(247,140,108,0.3); }
.land-bar-dot:nth-child(3) { background: rgba(255,203,107,0.15); }
.land-bar-url {
  margin-left: 6px;
  width: 50px; height: 3px;
  border-radius: 2px;
  background: rgba(255,203,107,0.1);
}

/* hero section */
.land-hero {
  margin: 10px 10px 0;
  height: 50px;
  border-radius: 4px;
  border: 1px solid rgba(255,203,107,0.1);
  background: rgba(255,203,107,0.04);
  position: relative;
  animation: sectionPulse 8s ease-in-out infinite;
}
.land-hero-line {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  left: 8px;
}
.land-hero-line:nth-child(1) { top: 12px; width: 50px; background: rgba(255,203,107,0.3); }
.land-hero-line:nth-child(2) { top: 20px; width: 35px; background: rgba(255,203,107,0.15); }
.land-hero-btn {
  position: absolute;
  bottom: 8px; left: 8px;
  width: 30px; height: 8px;
  border-radius: 3px;
  background: rgba(255,203,107,0.2);
}

/* feature columns */
.land-features {
  display: flex;
  gap: 6px;
  margin: 8px 10px 0;
}
.land-feat {
  flex: 1;
  height: 35px;
  border-radius: 3px;
  border: 1px solid rgba(247,140,108,0.1);
  background: rgba(247,140,108,0.03);
  position: relative;
}
.land-feat-icon {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(247,140,108,0.2);
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
}
.land-feat-line {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 2px;
  border-radius: 2px;
  background: rgba(247,140,108,0.12);
}
.land-feat:nth-child(1) { animation: sectionPulse 8s ease-in-out 1s infinite; }
.land-feat:nth-child(2) { animation: sectionPulse 8s ease-in-out 2s infinite; }
.land-feat:nth-child(3) { animation: sectionPulse 8s ease-in-out 3s infinite; }

/* content block */
.land-content {
  margin: 8px 10px 0;
  height: 30px;
  border-radius: 3px;
  border: 1px solid rgba(255,203,107,0.08);
  background: rgba(255,203,107,0.02);
  position: relative;
  animation: sectionPulse 8s ease-in-out 2s infinite;
}
.land-content-line {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  left: 8px;
  background: rgba(255,203,107,0.1);
}
.land-content-line:nth-child(1) { top: 8px; width: 80px; }
.land-content-line:nth-child(2) { top: 16px; width: 55px; }

/* cta block */
.land-cta-block {
  margin: 8px 10px 0;
  height: 24px;
  border-radius: 3px;
  background: rgba(255,203,107,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sectionPulse 8s ease-in-out 4s infinite;
}
.land-cta-btn {
  width: 40px; height: 8px;
  border-radius: 3px;
  background: rgba(255,203,107,0.25);
}

/* glow behind browser */
.land-glow {
  position: absolute;
  width: 180px; height: 180px;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,203,107,0.06) 0%, transparent 70%);
  animation: subtlePulse 8s ease-in-out infinite;
}

/* rising arrow beside browser */
.land-arrow {
  position: absolute;
  right: 6px; bottom: 40px;
  width: 2px; height: 60px;
  background: linear-gradient(to top, transparent, rgba(255,203,107,0.2));
  border-radius: 2px;
  animation: arrowRise 6s ease-in-out infinite;
}
.land-arrow::after {
  content: '';
  position: absolute;
  top: -4px; left: -3px;
  width: 8px; height: 8px;
  border-top: 2px solid rgba(255,203,107,0.3);
  border-right: 2px solid rgba(255,203,107,0.3);
  transform: rotate(-45deg);
}

@keyframes browserFloat {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50% { transform: translateY(-50%) translateY(-4px); }
}
@keyframes sectionPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes arrowRise {
  0%, 100% { opacity: 0.3; transform: translateY(3px); }
  50% { opacity: 0.7; transform: translateY(-3px); }
}

/* progress bar */
.banner-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 5;
  background: rgba(255,255,255,0.04);
}
.banner-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}
.banner-progress-bar.is-portfolio {
  background: linear-gradient(90deg, #5de4c7, #89ddff);
}
.banner-progress-bar.is-landing {
  background: linear-gradient(90deg, #ffcb6b, #f78c6c);
}

/* cursor glow */
.banner-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,228,199,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}
.banner-link:hover .banner-glow { opacity: 1; }
