--- Base Styling --- .theme-portfolio-wrapper {
  background-color: #f4f7f6;
  border-radius: 40px;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.filter-sidebar {
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px;
}

.theme-filter-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #edf2f7;
  background: #ffffff;
  color: #4a5568;
  font-weight: 600;
  text-transform: capitalize;
  cursor: pointer;
}

.theme-filter-btn .badge {
  background-color: #e2e8f0;
  color: #4a5568;
  transition: all 0.3s ease;
}

.theme-filter-btn:hover {
  transform: translateX(-5px);
  border-color: #cbd5e0;
  background-color: #f8fafc;
}

.theme-filter-btn.active {
  background: #0d6efd;
  color: #ffffff;
  border-color: #0d6efd;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.theme-filter-btn.active .badge {
  background-color: #ffffff;
  color: #0d6efd;
}

/* --- Theme Card Grid & Animations --- */

.theme-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.theme-card.show-animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.divine-card-body {
  padding: 24px;
  margin-top: auto;
}

/* --- DEVICE MOCKUP STYLING (The Magic Part) --- */

.divine-device-preview-area {
  padding: 20px;
  background: #f8fafc;
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.divine-mockup-wrapper {
  position: relative;
  margin: 0 auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.divine-screen-container {
  background: #ffffff;
  overflow: hidden;
  position: relative;
  transition: all 0.5s ease;
}

.divine-screen-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  pointer-events: none;
}

/* 1. LAPTOP VIEW */

.divine-mockup-wrapper.divine-device-laptop {
  width: 100%;
  max-width: 100%;
  background: #2b2b2b;
  border-radius: 8px 8px 0 0;
  padding: 3% 3% 0 3%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.divine-device-laptop .divine-screen-container {
  aspect-ratio: 16 / 9;
  border-radius: 4px 4px 0 0;
}

.divine-device-laptop .divine-laptop-base {
  width: 112%;
  height: 12px;
  background: #d4d4d4;
  border-radius: 0 0 10px 10px;
  margin-left: -6%;
  position: relative;
  display: block;
}

.divine-device-laptop iframe {
  width: 1280px !important;
  height: 720px !important;
}

/* 2. TABLET VIEW */

.divine-mockup-wrapper.divine-device-tablet {
  width: 65%;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 4% 3%;
  box-shadow: inset 0 0 0 2px #444, 0 10px 20px rgba(0,0,0,0.2);
}

.divine-device-tablet .divine-screen-container {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
}

.divine-device-tablet .divine-laptop-base {
  display: none;
}

.divine-device-tablet iframe {
  width: 768px !important;
  height: 1024px !important;
}

/* 3. MOBILE VIEW */

.divine-mockup-wrapper.divine-device-mobile {
  width: 35%;
  background: #1a1a1a;
  border-radius: 25px;
  padding: 8% 3% 10% 3%;
  box-shadow: inset 0 0 0 2px #444, 0 10px 20px rgba(0,0,0,0.2);
}

.divine-device-mobile .divine-screen-container {
  aspect-ratio: 9 / 19;
  border-radius: 10px;
}

.divine-device-mobile .divine-laptop-base {
  display: none;
}

.divine-device-mobile iframe {
  width: 375px !important;
  height: 812px !important;
}

/* Allow scrolling and interaction ONLY on the active center card */

.divine-mockup-wrapper iframe {
  pointer-events: auto;
  /*Optional: Make the scrollbar look a bit better when scaled down;*/
  scrollbar-width: thin;
}

/* Responsive tweaks for smaller screens */

@media (max-width: 768px) {
  .divine-mockup-wrapper.divine-device-tablet {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .divine-mockup-wrapper.divine-device-mobile {
    width: 50%;
  }
}

/* Force original background properties for the home slider */

#fw_al_007 .carousel-inner {
  background: transparent !important;
}

/* If the "blue shade" is coming from a backdrop-filter or overlay class */

#fw_al_007 .carousel-item::before {
  content: none !important;
}

/* Ensure images maintain full visibility */

#fw_al_007 .carousel-item img {
  filter: none !important;
  background-color: transparent !important;
}

/* Keep the Navbar separate from the Portfolio background */

header, .navbar {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

