/* ==========================================================================
   AbracaDabra Software Solutions — Portfolio Case Study Module (Light Theme)
   ========================================================================== */

/* Base Light Theme Page Styles */
body.portfolio-page {
  background-color: #f8fafc !important;
  color: #334155 !important;
  position: relative;
  min-height: 100vh;
}

/* Navbar Navlinks Alignment — Moved to Right Side */
.navbar .primary-nav {
  margin-left: auto !important;
}

.navbar .primary-nav ul {
  display: flex !important;
  align-items: center !important;
  gap: 2.2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Breadcrumb & Navigation Strip */
.cs-breadcrumb-strip {
  padding-top: 105px;
  padding-bottom: 1.2rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}

.cs-breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cs-breadcrumb-left {
  display: flex;
  align-items: center;
}

.cs-crumbs-light {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body, sans-serif);
  font-size: 0.88rem;
  color: #64748b;
}

.cs-crumbs-light a {
  color: #475569;
  font-weight: 500;
  transition: color 0.2s;
}

.cs-crumbs-light a:hover {
  color: #4f46e5;
}

.cs-crumb-active {
  color: #0f172a;
  font-weight: 600;
}

/* Breadcrumb Right Product Badge */
.cs-breadcrumb-right {
  display: flex;
  align-items: center;
}

.cs-app-badge-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 1.1rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.cs-app-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 3px;
}

.cs-app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cs-app-badge-info {
  display: flex;
  flex-direction: column;
}

.cs-app-badge-title {
  font-family: var(--f-display, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.cs-app-badge-sub {
  font-size: 0.73rem;
  color: #64748b;
}

/* Light Theme Hero Section */
.cs-hero-light {
  position: relative;
  padding: 3.5rem 0 5.5rem;
  overflow: hidden;
  background: linear-gradient(175deg, #f8fafc 0%, #eef2ff 35%, #f5f3ff 65%, #faf5ff 100%);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.cs-category-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body, sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f6bff;
  background: rgba(79, 107, 255, 0.08);
  border: 1px solid rgba(79, 107, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.cs-title-light {
  font-family: var(--f-display, sans-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.18;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.cs-title-accent-light {
  background: linear-gradient(120deg, #4f6bff 0%, #6a80ff 60%, #8a9fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cs-subtitle-light {
  font-size: 1.08rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cs-hero-stats-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.cs-stat-card-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1.1rem 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.cs-stat-num-light {
  font-family: var(--f-display, sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #10b981;
  line-height: 1.2;
}

.cs-stat-label-light {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.cs-hero-actions-light {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cs-primary-light {
  background: linear-gradient(135deg, #4f6bff 0%, #6a80ff 100%);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(79, 107, 255, 0.35);
  transition: all 0.3s var(--ease);
}

.btn-cs-primary-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79, 107, 255, 0.5);
  color: #ffffff !important;
}

.btn-cs-ghost-light {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b !important;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s var(--ease);
}

.btn-cs-ghost-light:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

/* Light Mockup Frame */
.cs-mockup-frame-light {
  background: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 30px rgba(79, 70, 229, 0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--ease);
  cursor: pointer;
}

.cs-mockup-frame-light:hover {
  transform: translateY(-5px);
}

.cs-mockup-bar-light {
  background: #f1f5f9;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.cs-mockup-img-light {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Light Theme Sections */
.cs-light-section {
  padding: 5.5rem 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.cs-alt-section {
  padding: 5.5rem 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.cs-section-header-light {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.cs-section-tag-light {
  font-family: var(--f-body, sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f6bff;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

.cs-section-title-light {
  font-family: var(--f-display, sans-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.cs-section-desc-light {
  font-size: 1.02rem;
  color: #475569;
}

/* Light Theme Feature Cards */
.cs-features-grid-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.cs-feature-card-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.35s var(--ease);
}

.cs-feature-card-light:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 107, 255, 0.35);
  box-shadow: 0 16px 36px rgba(79, 107, 255, 0.12);
}

.cs-feature-icon-light {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(79, 107, 255, 0.08);
  border: 1px solid rgba(79, 107, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f6bff;
  margin-bottom: 1.4rem;
}

.cs-feature-title-light {
  font-family: var(--f-display, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.8rem;
}

.cs-feature-desc-light {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
}

/* Light Theme Gallery Grid */
.cs-gallery-grid-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cs-gallery-item-light {
  background: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cs-gallery-item-light:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.18);
}

.cs-gallery-item-light img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.cs-gallery-overlay-light {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cs-gallery-item-light:hover .cs-gallery-overlay-light {
  opacity: 1;
}

.cs-zoom-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cs-gallery-item-light:hover .cs-zoom-btn {
  transform: scale(1.1);
  background: rgba(79, 70, 229, 0.9);
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Light Theme CTA Section */
.cs-cta-section-light {
  padding: 5.5rem 0 8.5rem;
  background: #f8fafc;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.cs-cta-box-light {
  max-width: 720px;
  margin: 0 auto;
}

.cs-cta-title-light {
  font-family: var(--f-display, sans-serif);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.2rem;
}

.cs-cta-sub-light {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2.4rem;
}

/* ==========================================================================
   Full-Screen Lightbox Engine with Next/Prev & Close Buttons
   ========================================================================== */
.cs-lightbox, .pf-lightbox {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}



.cs-lightbox.is-open, .pf-lightbox.is-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cs-lb-container {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cs-lb-close-btn {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 100000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cs-lb-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
}

.cs-lb-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.cs-lb-nav-btn:hover {
  background: #4f6bff;
  border-color: #4f6bff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 24px rgba(79, 107, 255, 0.5);
}

.cs-lb-prev-btn {
  left: 24px;
}

.cs-lb-next-btn {
  right: 24px;
}

.cs-lb-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(79, 70, 229, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: #0f172a;
}

.cs-lb-img {
  max-width: 85vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cs-lb-img.is-animating {
  opacity: 0.3;
  transform: scale(0.97);
}

.cs-lb-caption-box {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 80px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cs-lb-caption-title {
  display: none;
}

.cs-lb-counter {
  font-family: var(--f-body, sans-serif);
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cs-features-grid-light, .cs-gallery-grid-light {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cs-breadcrumb-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs-features-grid-light, .cs-gallery-grid-light, .cs-hero-stats-light {
    grid-template-columns: 1fr;
  }

  .cs-lb-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .cs-lb-prev-btn { left: 10px; }
  .cs-lb-next-btn { right: 10px; }
  .cs-lb-close-btn { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* ============ TECHNICAL ARCHITECTURE & SPECS SECTION ============ */
.cs-spec-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.cs-tech-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.cs-tech-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 2px solid #cbd5e1;
  padding-left: 1rem;
}

.cs-tech-item strong {
  font-family: var(--f-body, sans-serif);
  font-size: 0.9rem;
  color: #4f6bff;
}

.cs-tech-item span {
  font-size: 0.95rem;
  color: #334155;
}

.cs-results-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.cs-result-item {
  margin-bottom: 1.5rem;
}

.cs-result-item:last-child {
  margin-bottom: 0;
}

.cs-result-value {
  font-family: var(--f-display, sans-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #4f6bff;
}

.cs-result-item div:last-child {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
}

@media (max-width: 1024px) {
  .cs-spec-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============ PREMIUM DYNAMIC CAROUSEL ============ */
.cs-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.cs-carousel-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  border: none;
  box-shadow: none;
}

.cs-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.cs-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 1.5rem;
  box-sizing: border-box;
}

.cs-carousel-slide img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: none;
}

.cs-carousel-slide img:hover {
  transform: scale(1.01);
}

.cs-carousel-zoom-btn {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 10;
}

.cs-carousel-slide:hover .cs-carousel-zoom-btn {
  opacity: 1;
  visibility: visible;
}

.cs-carousel-zoom-btn:hover {
  background: #4f6bff;
  border-color: #4f6bff;
  transform: scale(1.1);
}

.cs-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 15;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cs-carousel-btn:hover {
  background: #4f6bff;
  color: #ffffff;
  border-color: #4f6bff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(79, 107, 255, 0.3);
}

.cs-carousel-btn.cs-prev-btn {
  left: -24px;
}

.cs-carousel-btn.cs-next-btn {
  right: -24px;
}

.cs-carousel-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.cs-carousel-counter {
  font-family: var(--f-body, sans-serif);
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  background: #f8fafc;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.cs-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cs-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cs-carousel-dot:hover {
  background: #94a3b8;
}

.cs-carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: #4f6bff;
}

@media (max-width: 1024px) {
  .cs-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .cs-carousel-btn.cs-prev-btn { left: 8px; }
  .cs-carousel-btn.cs-next-btn { right: 8px; }
}
