/*----------index------------*/
.compare-container{
    position:relative;
    width:100%;
    overflow:hidden;
    line-height:0;
}

.compare-before{
    display:block;
    width:100%;
    height:auto;
    user-select:none;
    pointer-events:none;
}

.compare-overlay{
    position:absolute;
    inset:0;
    overflow:hidden;
    clip-path: inset(0 50% 0 0);
}

.compare-after{
    position:absolute;
    inset:0;

    /* IMPORTANT */
    width:100%;
    height:100%;
    object-fit:fill;      /* or remove object-fit if both images are same size */

    user-select:none;
    pointer-events:none;
}

.compare-line{
    position:absolute;
    top:0;
    left:50%;
    width:2px;
    height:100%;
    background:#fff;
    z-index:5;
    pointer-events:none;
}

.compare-slider{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    z-index:10;
    cursor:ew-resize;
}    
/*-----------------email--------------*/
#newsletterMessage{
    margin-top:10px;
    font-size:14px;
    font-weight:600;
}
/*---------------------news letter-------------------*/
.newsletter-message{
    display:none;
    margin-top:15px;
    padding:12px 16px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    line-height:1.5;
    word-break:break-word;
}

.newsletter-message.show{
    display:block;
}

.newsletter-message.success{
    background:#e7f8ee;
    color:#1c7a43;
    border:1px solid #b7e6c8;
}

.newsletter-message.error{
    background:#fdecec;
    color:#c0392b;
    border:1px solid #f5c1bd;
}

#subscribeBtn:disabled{
    opacity:.7;
    cursor:not-allowed;
}
/*--------------------potfolio-------------*/
/*--------------contact page error show style sheet-------------------*/

  .error-msg{
    color:#dc3545;
    font-size:13px;
    margin-top:6px;
    display:block;
    font-weight:500;
}

.error-field{
    border:1px solid #dc3545 !important;
}

.form-alert{
    display:none;
    padding:15px 20px;
    margin-bottom:20px;
    border-radius:6px;
    font-size:15px;
    font-weight:500;
}

.form-alert.error{
    display:block;
    background:#fdeaea;
    color:#b42318;
    border:1px solid #f5c2c7;
}

.form-alert.success{
    display:block;
    background:#e8f8ed;
    color:#146c43;
    border:1px solid #badbcc;
}
/*------------------------------------------------------------------------------------*/

/* ============================================================
   PORTFOLIO 3D COVERFLOW CAROUSEL
   Breakpoints used throughout this file:
   Large Desktop  : 1440px and above  (base rules, no media query)
   Desktop        : 1200px – 1439px
   Small Laptop   : 992px  – 1199px
   Tablet         : 768px  – 991px
   Mobile Large   : 481px  – 767px
   Mobile Small   : 320px  – 480px
============================================================ */

.portfolio-showcase {
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
  overflow-x: clip; /* prevents the coverflow's translateX offsets from creating a page-wide horizontal scrollbar on narrow screens */
  box-sizing: border-box;
}
.carousel-slide.pos-edge-left,
.carousel-slide.pos-edge-right {
    opacity: 0.3;
    filter: blur(2px);
}
/* Near left / near right */
.carousel-slide.pos-near-left,
.carousel-slide.pos-near-right {
    opacity: 0.6;
}
.carousel-slide.pos-focus {
    opacity: 1;
    filter: none;
}

/* ---------- Filter pills ---------- */
.portfolio-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
}

.portfolio-filter-nav a {
  display: inline-block;
  padding: clamp(9px, 1.4vw, 12px) clamp(16px, 2.6vw, 28px);
  border-radius: 999px;
  border: 2px solid #1c2b4a;
  color: #1c2b4a;
  font-weight: 700;
  font-size: clamp(12px, 1.6vw, 15px);
  text-decoration: none;
  background: #fff;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
  white-space: nowrap;
}

.portfolio-filter-nav a:hover {
  transform: translateY(-2px);
}

.portfolio-filter-nav a.is-active {
  background: #e8433c;
  border-color: #e8433c;
  color: #fff;
}

/* ---------- Carousel stage ---------- */
.carousel-stage {
  position: relative;
  height: 460px;
  margin: 0 auto;
  perspective: 2200px;
}

.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
  cursor: pointer;
  will-change: transform, opacity, left, top;
  transition: left .1s cubic-bezier(.5, 0, .35, 1),
              top .1s cubic-bezier(.55, 0, .35, 1),
              width .9s cubic-bezier(.65, 0, .35, 1),
              height .9s cubic-bezier(.65, 0, .35, 1),
              transform .9s cubic-bezier(.65, 0, .35, 1),
              opacity .1s cubic-bezier(.65, 0, .35, 1),
              z-index 0s .45s;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Center — large, sharp, fully in front (Large Desktop base) */
.carousel-slide.pos-focus {
  width: 900px;
  height: 460px;
  transform: translate(-50%, -50%) rotateY(0deg) scale(1);
  z-index: 5;
}

/* Near left / near right */
.carousel-slide.pos-near-left {
  width: 340px;
  height: 420px;
  transform: translate(calc(-50% - 430px), -50%) rotateY(22deg) scale(.9);
  z-index: 3;
}

.carousel-slide.pos-near-right {
  width: 340px;
  height: 420px;
  transform: translate(calc(-50% + 430px), -50%) rotateY(-22deg) scale(.9);
  z-index: 3;
}

/* Far left / far right */
.carousel-slide.pos-edge-left {
  width: 220px;
  height: 360px;
  transform: translate(calc(-50% - 610px), -50%) rotateY(32deg) scale(.8);
  z-index: 1;
}

.carousel-slide.pos-edge-right {
  width: 220px;
  height: 360px;
  transform: translate(calc(-50% + 610px), -50%) rotateY(-32deg) scale(.8);
  z-index: 1;
}

/* ================= RESPONSIVE — DESKTOP (1200px – 1439px) =================
   .portfolio-showcase caps out at 1200px wide, so the Large Desktop offsets
   (±610px edge / ±430px near / 900px focus) are trimmed slightly so the
   coverflow doesn't spill past its own container at this tier. */
@media (max-width: 1439px) {
  .carousel-stage { height: 440px; perspective: 2000px; }

  .carousel-slide.pos-focus { width: 760px; height: 420px; }

  .carousel-slide.pos-near-left,
  .carousel-slide.pos-near-right { width: 300px; height: 380px; }
  .carousel-slide.pos-near-left  { transform: translate(calc(-50% - 380px), -50%) rotateY(22deg) scale(.9); }
  .carousel-slide.pos-near-right { transform: translate(calc(-50% + 380px), -50%) rotateY(-22deg) scale(.9); }

  .carousel-slide.pos-edge-left,
  .carousel-slide.pos-edge-right { width: 190px; height: 320px; }
  .carousel-slide.pos-edge-left  { transform: translate(calc(-50% - 520px), -50%) rotateY(30deg) scale(.8); }
  .carousel-slide.pos-edge-right { transform: translate(calc(-50% + 520px), -50%) rotateY(-30deg) scale(.8); }
}

/* ================= RESPONSIVE — SMALL LAPTOP (992px – 1199px) ================= */
@media (max-width: 1199px) {
  .carousel-stage { height: 400px; perspective: 1800px; }

  .carousel-slide.pos-focus { width: 620px; height: 380px; }

  .carousel-slide.pos-near-left,
  .carousel-slide.pos-near-right { width: 260px; height: 340px; }
  .carousel-slide.pos-near-left  { transform: translate(calc(-50% - 300px), -50%) rotateY(22deg) scale(.9); }
  .carousel-slide.pos-near-right { transform: translate(calc(-50% + 300px), -50%) rotateY(-22deg) scale(.9); }

  .carousel-slide.pos-edge-left,
  .carousel-slide.pos-edge-right { width: 160px; height: 280px; }
  .carousel-slide.pos-edge-left  { transform: translate(calc(-50% - 420px), -50%) rotateY(32deg) scale(.8); }
  .carousel-slide.pos-edge-right { transform: translate(calc(-50% + 420px), -50%) rotateY(-32deg) scale(.8); }
}

/* ================= RESPONSIVE — TABLET (768px – 991px) ================= */
@media (max-width: 991px) {
  .carousel-stage { height: 360px; perspective: 1500px; }

  .carousel-slide.pos-focus { width: 480px; height: 340px; }

  .carousel-slide.pos-near-left,
  .carousel-slide.pos-near-right { width: 200px; height: 300px; }
  .carousel-slide.pos-near-left  { transform: translate(calc(-50% - 240px), -50%) rotateY(25deg) scale(.85); }
  .carousel-slide.pos-near-right { transform: translate(calc(-50% + 240px), -50%) rotateY(-25deg) scale(.85); }

  .carousel-slide.pos-edge-left,
  .carousel-slide.pos-edge-right { width: 130px; height: 240px; }
  .carousel-slide.pos-edge-left  { transform: translate(calc(-50% - 320px), -50%) rotateY(32deg) scale(.75); }
  .carousel-slide.pos-edge-right { transform: translate(calc(-50% + 320px), -50%) rotateY(-32deg) scale(.75); }
}

/* ================= RESPONSIVE — MOBILE LARGE (481px – 767px) ================= */
@media (max-width: 767px) {
  .carousel-stage { height: 320px; perspective: 1200px; }

  .carousel-slide.pos-focus { width: 320px; height: 300px; }

  .carousel-slide.pos-near-left,
  .carousel-slide.pos-near-right,
  .carousel-slide.pos-edge-left,
  .carousel-slide.pos-edge-right {
    width: 90px;
    height: 220px;
  }
  .carousel-slide.pos-near-left  { transform: translate(calc(-50% - 160px), -50%) rotateY(30deg) scale(.8); }
  .carousel-slide.pos-near-right { transform: translate(calc(-50% + 160px), -50%) rotateY(-30deg) scale(.8); }
  .carousel-slide.pos-edge-left  { transform: translate(calc(-50% - 200px), -50%) rotateY(35deg) scale(.7); }
  .carousel-slide.pos-edge-right { transform: translate(calc(-50% + 200px), -50%) rotateY(-35deg) scale(.7); }
}

/* ================= RESPONSIVE — MOBILE SMALL (320px – 480px) =================
   Same coverflow structure, just scaled down so the focus card and its
   two flanking peeks all sit inside a 320–480px viewport without overflow. */
@media (max-width: 480px) {
  .carousel-stage { height: 200px; perspective: 900px; }

  .carousel-slide.pos-focus { width: 240px; height: 150px; }

  .carousel-slide.pos-near-left,
  .carousel-slide.pos-near-right,
  .carousel-slide.pos-edge-left,
  .carousel-slide.pos-edge-right {
    width: 150px;
    height: 170px;
  }
  .carousel-slide.pos-near-left  { transform: translate(calc(-50% - 105px), -50%) rotateY(32deg) scale(.75); }
  .carousel-slide.pos-near-right { transform: translate(calc(-50% + 105px), -50%) rotateY(-32deg) scale(.75); }
  .carousel-slide.pos-edge-left  { transform: translate(calc(-50% - 130px), -50%) rotateY(36deg) scale(.65); }
  .carousel-slide.pos-edge-right { transform: translate(calc(-50% + 130px), -50%) rotateY(-36deg) scale(.65); }
}

@media (max-width: 320px) {
  .carousel-stage { height: 260px; perspective: 900px; }

  .carousel-slide.pos-focus { width: 230px; height: 220px; }

  .carousel-slide.pos-near-left,
  .carousel-slide.pos-near-right,
  .carousel-slide.pos-edge-left,
  .carousel-slide.pos-edge-right {
    width: 56px;
    height: 170px;
  }
  .carousel-slide.pos-near-left  { transform: translate(calc(-50% - 105px), -50%) rotateY(32deg) scale(.75); }
  .carousel-slide.pos-near-right { transform: translate(calc(-50% + 105px), -50%) rotateY(-32deg) scale(.75); }
  .carousel-slide.pos-edge-left  { transform: translate(calc(-50% - 130px), -50%) rotateY(36deg) scale(.65); }
  .carousel-slide.pos-edge-right { transform: translate(calc(-50% + 130px), -50%) rotateY(-36deg) scale(.65); }
}

/*-------------------------btn------------------------*/

/* ---------- Controls — neon glass pill ---------- */
.carousel-controls {
  --glow: #29a9e0;                 /* default: soft brand blue */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 32px auto 0;
  padding: 1px 7px;
  border-radius: 999px;
  background: #05060f;
  border: 2px solid var(--glow);
  box-shadow: 0 0 10px var(--glow), inset 0 0 10px rgba(41, 169, 224, .25);
  transition: border-color .25s ease, box-shadow .25s ease;
  width: fit-content;
}

/* whole pill glows purple while any icon inside is hovered */
.carousel-controls:has(button:hover) {
  --glow: #b026ff;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--glow);
  filter: drop-shadow(0 0 6px var(--glow));
  transition: color .2s ease, filter .2s ease, transform .15s ease;
  flex-shrink: 0; /* keeps buttons from squashing inside the pill at narrow widths */
}

.carousel-controls button:hover {
  color: #b026ff;
  filter: drop-shadow(0 0 9px #b026ff);
}

.carousel-controls button:active {
  color: #29d3ff;
  filter: drop-shadow(0 0 12px #29d3ff);
  transform: scale(.94);
}

.carousel-controls button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#carouselZoom {
  width: 44px;
  height: 44px;
}

#carouselZoom svg {
  width: 24px;
  height: 24px;
}

/* Mobile Small only: shrink tap targets a little so the 3-button pill
   never gets tight against a 320px viewport edge. Kept at/above 38px
   to stay clear of Lighthouse's tap-target-size accessibility check. */
@media (max-width: 480px) {
  .carousel-controls button,
  #carouselZoom {
    width: 38px;
    height: 38px;
  }
  .carousel-controls button svg { width: 19px; height: 19px; }
  #carouselZoom svg { width: 21px; height: 21px; }
  .carousel-controls { gap: 3px; padding: 1px 5px; }
}

/* ---------- Caption ---------- */
.carousel-caption {
  margin-top: 34px;
}

.carousel-caption h3 {
  font-size: clamp(19px, 2.6vw, 26px);
  color: #1c2b4a;
  margin: 0 0 8px;
}

.carousel-caption p {
  font-size: clamp(13px, 1.4vw, 16px);
  color: #6a7385;
  margin: 0 0 18px;
}

.carousel-cta {
  display: inline-block;
  padding: clamp(10px, 1.6vw, 12px) clamp(22px, 3.5vw, 30px);
  border-radius: 999px;
  background: #e8433c;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px; /* keeps the image off the viewport edge on small screens */
  box-sizing: border-box;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
}


.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 480px) {
  .lightbox-close {
    top: 12px;
    right: 14px;
    font-size: 32px;
  }
}


