/* =========================
   GLOBAL
========================= */

body {
  background: #111;
  margin: 0;
  font-family: Arial;
}



html {
  color-scheme: dark;
}

body {
  font-family: system-ui;
  font-size: 2rem;
}



@media (max-width: 350px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    max-width: 120px;
    padding-bottom: 20px;
  }

  .list-item {
    flex-basis: auto;
  }

  .list-item:hover {
    .list-item-name {
      transform: translateY(25px);
    }
  }
}

/* =========================
   portfolio.html / Carousel
========================= */
#topBtn {
  position: fixed;

  bottom: 25px;
  right: 25px;

  width: 200px;
  height: 50px;

  border: none;
  border-radius: 5%;

  background-color: #111;
  color: white;

  font-size: 24px;
  font-weight: bold;

  display: none;

  justify-content: center;
  align-items: center;

  cursor: pointer;

  z-index: 9999;

  box-shadow: 0 5px 15px rgba(0,0,0,0.3);

  transition: all 0.3s ease;
}

#topBtn:hover {
  background-color: #333;
  transform: translateY(-3px);
}

.portfolio-img {
  max-height: 80vh;
  object-fit: cover;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;

  background: rgba(0,0,0,0.9);

  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}


:root {
  /* slider width */
  --slide-width: 800px;
  /* slider aspect ratio (width/height) */
  --slide-aspect: 3;
  /* animation time */
  --slide-time: 15s;
}
/* slider styles */
.tcSlider {
  width: var(--slide-width);
  aspect-ratio: var(--slide-aspect) / 1;
  background-color: #000;
  overflow: hidden;
  border-radius: 10px;
}
.slider {
  animation-name: tc_slider;
  animation-duration: var(--slide-time);
  animation-iteration-count: infinite;
}
.slide {
  position: relative;
}
.slider_img {
  width: var(--slide-width);
  aspect-ratio: var(--slide-aspect) / 1;
  background-position: center center;
  background-size: cover;
}
.slider_link {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  text-decoration: none;
  padding: 5px 15px;
  position: absolute;
  bottom: 20px;
  left: 20px;
}
/* animation */
@keyframes tc_slider {
  0% {
    margin-top: 0;
  }
  31% {
    margin-top: 0;
  }
  36% {
    margin-top: calc(var(--slide-width) / var(--slide-aspect) * -1);
  }
  64% {
    margin-top: calc(var(--slide-width) / var(--slide-aspect) * -1);
  }
  69% {
    margin-top: calc(var(--slide-width) / var(--slide-aspect) * -2);
  }
  97% {
    margin-top: calc(var(--slide-width) / var(--slide-aspect) * -2);
  }
}


/* Mobile adjustments */
@media (max-width: 768px) {

    .carousel-item img {
        max-height: 60vh;
    }

}

/* =========================
   LIGHTBOX (PIXIESET STYLE)
========================= */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  cursor: zoom-out;
}

/* =========================
LOGIN PAGE
========================= */
.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  background: white;
}

.login-card input {
  padding: 12px;
  border-radius: 10px;
}

.login-card .btn {
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s ease;
}

.login-card .btn:hover {
  transform: translateY(-2px);
}

/* =========================
   client.html / client gallery
========================= */

.client-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;

  transition: 0.3s ease;

  box-shadow: 0 5px 20px rgba(0,0,0,0.08);

  height: 100%;
}

.client-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Gallery Image */

.gallery-img {
  width: 100%;
  height: 280px;

  object-fit: cover;

  cursor: pointer;

  transition: 0.3s ease;
}

.gallery-img:hover {
  opacity: 0.92;
}

/* Cart Bar */

.cart-bar {
  position: sticky;

  top: 80px;

  z-index: 100;

  background: white;

  border-radius: 16px;

  padding: 18px 25px;

  display: flex;

  justify-content: space-between;
  align-items: center;
}

.portfolio-wrapper {
  column-count: 4;
  column-gap: 20px;

  /* creates your 15–20% side padding effect */
  padding: 0 10%;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.masonry-item img:hover {
  transform: scale(1.02);
}

@media (max-width: 1200px) {
  .portfolio-wrapper {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .portfolio-wrapper {
    column-count: 2;
    padding: 0 5%;
  }
}

@media (max-width: 480px) {
  .portfolio-wrapper {
    column-count: 1;
    padding: 0 5%;
  }
}


/* Lightbox */

.lightbox {
  display: none;

  position: fixed;

  z-index: 9999;

  inset: 0;

  background: rgba(0,0,0,0.92);

  justify-content: center;
  align-items: center;

  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;

  border-radius: 12px;

  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}


 .footer{
  padding-top: 5%;
 }


 