/* ==========================================================================
   APPUNO HOME PAGE - MODERN INTERACTIVE PROJECT SHOWCASE
   Desktop: Apple-grade interactive split showcase with Mac browser mockup
   Mobile: Native touch-optimized pill switcher + unified mobile project card
   ========================================================================== */

.project-one.appuno-showcase-section {
  position: relative;
  padding: 60px 0 70px;
  background: #f8fafc;
  background-image: 
    radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(247, 41, 42, 0.03) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  overflow: hidden;
}

/* Subtle ambient glow in background */
.project-one.appuno-showcase-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(247, 41, 42, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.project-one.appuno-showcase-section::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.appuno-showcase-section .auto-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
}

/* Section Header */
.appuno-showcase-header {
  margin-bottom: 35px;
}

.appuno-showcase-header .sec-title_heading {
  margin-top: 10px;
  margin-bottom: 8px;
}

.appuno-showcase-header .sec-title_desc {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

/* ==========================================================================
   DESKTOP: INTERACTIVE PROJECT TABS (LEFT COLUMN)
   ========================================================================== */
.appuno-ptabs-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appuno-ptab-item {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.04);
}

.appuno-ptab-item:hover {
  transform: translateX(4px);
  border-color: rgba(247, 41, 42, 0.3);
  box-shadow: 0 10px 24px -6px rgba(247, 41, 42, 0.1);
}

/* Active State */
.appuno-ptab-item.active {
  background: #ffffff;
  border-color: rgba(247, 41, 42, 0.45);
  box-shadow: 0 14px 34px -8px rgba(247, 41, 42, 0.16);
  transform: translateX(6px);
}

/* Active Left Indicator Pill */
.appuno-ptab-item::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--gradient-primary, linear-gradient(135deg, #F7292A 0%, #FF6B35 100%));
  opacity: 0;
  transform: scaleY(0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.appuno-ptab-item.active::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Animated Progress Line at the bottom of active tab */
.appuno-ptab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-primary, linear-gradient(135deg, #F7292A 0%, #FF6B35 100%));
  transition: width 0.1s linear;
}

.appuno-ptab-item.active .appuno-ptab-progress {
  width: 100%;
}

/* Top Meta Row (Number + Tag) */
.appuno-ptab-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.appuno-ptab-num {
  font-family: var(--font-primary, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.appuno-ptab-item.active .appuno-ptab-num {
  color: #F7292A;
}

.appuno-ptab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: #f1f5f9;
  color: #475569;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.appuno-ptab-item.active .appuno-ptab-badge {
  background: rgba(247, 41, 42, 0.08);
  color: #F7292A;
}

/* Title & Description */
.appuno-ptab-title {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.appuno-ptab-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Desktop All Projects Action Link */
.appuno-portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  padding: 10px 18px;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
}

.appuno-portfolio-cta svg {
  transition: transform 0.3s ease;
}

.appuno-portfolio-cta:hover {
  color: #F7292A;
  border-color: rgba(247, 41, 42, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(247, 41, 42, 0.15);
}

.appuno-portfolio-cta:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   DESKTOP: MAC OS BROWSER MOCKUP STAGE (RIGHT COLUMN)
   ========================================================================== */
.appuno-browser-deck-wrap {
  position: relative;
  perspective: 1200px;
}

/* Ambient glow under browser frame */
.appuno-browser-deck-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: radial-gradient(ellipse at center, rgba(247, 41, 42, 0.12) 0%, transparent 70%);
  border-radius: 28px;
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}

.appuno-browser-mockup {
  position: relative;
  z-index: 1;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 28px 60px -15px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.appuno-browser-mockup:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 34px 70px -15px rgba(247, 41, 42, 0.22);
}

/* Topbar Header */
.appuno-browser-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.appuno-browser-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.appuno-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.appuno-browser-dots .dot-red { background: #ef4444; }
.appuno-browser-dots .dot-yellow { background: #f59e0b; }
.appuno-browser-dots .dot-green { background: #10b981; }

.appuno-browser-url-pill {
  display: none !important;
}

.appuno-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 9px;
  border-radius: 50px;
  text-transform: uppercase;
}

.appuno-live-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: smvLivePulse 1.8s infinite ease-in-out;
}

@keyframes smvLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   VIEWPORT SLIDES (CROSS-FADE & ZOOM)
   ========================================================================== */
.appuno-browser-viewport {
  position: relative;
  width: 100%;
  height: 420px;
  background: #090d16;
  overflow: hidden;
}

.appuno-viewport-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s;
  pointer-events: none;
}

.appuno-viewport-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.appuno-viewport-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Floating Glassmorphic Overlay Card (Desktop) */
.appuno-slide-card {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.45s ease 0.1s;
}

.appuno-viewport-slide.active .appuno-slide-card {
  transform: translateY(0);
  opacity: 1;
}

.appuno-sc-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.appuno-sc-tag {
  font-size: 11.5px;
  color: #cbd5e1;
  margin: 0;
}

.appuno-sc-desc {
  display: none;
}

.appuno-sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  background: var(--gradient-primary, linear-gradient(135deg, #F7292A 0%, #FF6B35 100%));
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(247, 41, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.appuno-sc-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 41, 42, 0.5);
}

/* Mobile Controls (Strictly hidden on Desktop / Big Screens) */
.appuno-mobile-nav,
.appuno-mobile-cta-wrap {
  display: none !important;
}

/* ==========================================================================
   NATIVE MOBILE & TABLET UX (<992px)
   Transforms into an App Store-grade Horizontal Card Carousel
   ========================================================================== */
@media (max-width: 991px) {
  .project-one.appuno-showcase-section {
    padding: 40px 0 55px;
  }

  .appuno-showcase-header {
    margin-bottom: 24px;
    padding: 0 10px;
  }

  .appuno-showcase-header .sec-title_heading {
    font-size: 26px;
    line-height: 1.25;
  }

  .appuno-showcase-header .sec-title_desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin-top: 6px;
  }

  /* 1. Hide Desktop Left Tabs & Topbar on Mobile to eliminate clutter */
  .appuno-ptabs-column,
  .appuno-ptabs-deck,
  .appuno-browser-topbar {
    display: none !important;
  }

  /* 2. Reset Mockup Container on Mobile */
  .appuno-browser-deck-wrap {
    perspective: none;
    margin: 0;
  }

  .appuno-browser-deck-wrap::before {
    display: none;
  }

  .appuno-browser-mockup {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: none !important;
  }

  /* 3. Native Smooth Scroll-Snap Track */
  .appuno-browser-viewport {
    height: auto !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 16px !important;
    padding: 6px 20px 22px !important;
    margin: 0 -15px !important;
  }

  .appuno-browser-viewport::-webkit-scrollbar {
    display: none !important;
  }

  /* 4. Complete Unified Mobile Cards (Next Card Peeks on Right!) */
  .appuno-viewport-slide {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 85% !important; /* 85% width: 15% peek gives instant visual affordance to swipe */
    max-width: 370px !important;
    min-width: 270px !important;
    scroll-snap-align: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.08) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  }

  .appuno-viewport-slide:active {
    transform: scale(0.99) !important;
  }

  /* Card Image */
  .appuno-viewport-slide img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 190px !important;
    max-height: 230px !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  /* Card Content docked under image */
  .appuno-slide-card {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 0 20px 20px !important;
    padding: 16px 18px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    box-shadow: none !important;
    width: 100% !important;
  }

  .appuno-slide-card > div {
    width: 100%;
  }

  .appuno-sc-tag {
    display: inline-block !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #F7292A !important;
    background: rgba(247, 41, 42, 0.07) !important;
    padding: 3px 10px !important;
    border-radius: 50px !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.3px !important;
  }

  .appuno-sc-title {
    font-size: 18px !important;
    /*font-weight: 800 !important;*/
    color: #0f172a !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }

  .appuno-sc-desc {
    display: block !important;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin: 0 0 12px 0 !important;
  }

  .appuno-sc-btn {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 20px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    background: var(--gradient-primary, linear-gradient(135deg, #F7292A 0%, #FF6B35 100%)) !important;
    box-shadow: 0 4px 14px rgba(247, 41, 42, 0.35) !important;
    text-decoration: none !important;
  }

  /* 5. Mobile Navigation & Pagination Controls */
  .appuno-mobile-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 4px !important;
    padding: 0 10px !important;
  }

  .appuno-mnav-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .appuno-mnav-btn:active {
    transform: scale(0.92) !important;
    border-color: #F7292A !important;
    color: #F7292A !important;
    background: #fff5f5 !important;
  }

  .appuno-mnav-dots {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mnav-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #cbd5e1 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
  }

  .mnav-dot.active {
    width: 24px !important;
    border-radius: 50px !important;
    background: var(--gradient-primary, linear-gradient(135deg, #F7292A 0%, #FF6B35 100%)) !important;
    box-shadow: 0 2px 8px rgba(247, 41, 42, 0.35) !important;
  }

  /* 6. Bottom Portfolio Link */
  .appuno-mobile-cta-wrap {
    margin-top: 22px !important;
    text-align: center !important;
    padding: 0 16px !important;
  }

  .appuno-mobile-cta-wrap .appuno-portfolio-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}
