/* Custom styles */

/* Tailwind utilities */
@import "tailwind.min.css";

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Aspect ratio utilities */
.aspect-w-16 {
  position: relative;
  padding-bottom: calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%);
  --tw-aspect-w: 16;
}

.aspect-h-9 {
  --tw-aspect-h: 9;
}

.aspect-w-4 {
  position: relative;
  padding-bottom: calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%);
  --tw-aspect-w: 4;
}

.aspect-h-3 {
  --tw-aspect-h: 3;
}

.aspect-w-16 > *,
.aspect-w-4 > * {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Text gradient */
.text-transparent.bg-clip-text.bg-gradient-to-r {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Line clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom animations */
@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.duration-5000 {
  animation-duration: 5000ms;
}

/* Custom transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

/* Custom shadows */
.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* Custom z-index */
.z-50 {
  z-index: 50;
}

/* Custom colors */
.from-emerald-400 {
  --tw-gradient-from: #34d399;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(52, 211, 153, 0));
}

.to-cyan-400 {
  --tw-gradient-to: #22d3ee;
}

.from-emerald-500 {
  --tw-gradient-from: #10b981;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0));
}

.to-cyan-500 {
  --tw-gradient-to: #06b6d4;
}

.from-emerald-600 {
  --tw-gradient-from: #059669;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(5, 150, 105, 0));
}

.to-cyan-600 {
  --tw-gradient-to: #0891b2;
}

/* Mobile menu */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Portfolio carousel */
.portfolio-carousel-inner {
  transition: transform 0.5s ease;
}

/* Testimonial slider */
.testimonial-slider-track {
  transition: transform 0.5s ease;
}

/* Group hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.group:hover .group-hover\:text-emerald-600,
.group:hover .group-hover\:text-emerald-700 {
  color: #10b981;
}

/* Details element */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.lightbox-content {
    width: 800px;
    max-width: 95%;
    background: white;
    padding: 3%;
    position: relative;
}
.mfp-lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
}
.mfp-lightbox a {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    font-weight: 600;
    /* background: lightgreen; */
    transition: .3s;
}
.mfp-lightbox h2 {
    font-size: 25px;
    margin-bottom: 10px;
    font-weight: 900;
}
.from-slate-900 {
    --tw-gradient-from: #0f172aa1 var(--tw-gradient-from-position);
}
.to-slate-800 {
    --tw-gradient-to: #1e293b9e var(--tw-gradient-to-position);
}
.bg-\[url\(\'\/images\/grid-pattern\.svg\'\)\] {
    background-image: url(/assets/img/stvorennya-saytu.jpg);
    background-size: cover;
    background-position: center;
}
header nav ul {
    gap: 15px 40px;
}
.testimonial-slider-inner {
    margin-bottom: 70px;
}
.testimonial-dots {
    transform: translateY(20px);
}
form label, form select, form option, form input, form textarea, 
form input::placeholder, form textarea::placeholder, form select::placeholder {
    color: black;
}
footer form label, footer form select, footer form option, footer form input, footer form textarea,
footer form input::placeholder, footer form textarea::placeholder, footer form select::placeholder {
    color: white;
}
.herosection {
    background-image: url(../img/seo-prodvizhenie.webp);
    background-position: center;
    background-size: cover;
    position: relative;
}
.herosection::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* ÑÑ‚ÐµÐ¿ÐµÐ½ÑŒ Ð·Ð°Ñ‚ÐµÐ¼Ð½ÐµÐ½Ð¸Ñ Ð¼Ð¾Ð¶Ð½Ð¾ Ð¼ÐµÐ½ÑÑ‚ÑŒ */
    z-index: 1;
    pointer-events: none;
}
.herosection > * {
    position: relative;
    z-index: 2;
}
.hero-title {
    gap: 15px 5px;
    display: flex;
    flex-wrap: wrap;
}
.fixed-contact-icons {
    position: fixed;
    right: 20px;
    top: 20%;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fixed-contact-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
  transition: background 0.2s, transform 0.2s;
  border: 2px solid #10b981;
  font-size: 28px;
  color: #10b981;
}
.fixed-contact-icons a:hover {
  background: #10b981;
  color: #fff;
  transform: scale(1.08);
}
@media (max-width: 640px) {
  .fixed-contact-icons a {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}
.herogeneral {
    padding: 0 0 50px 0;
}
@media (max-width: 640px) {
  .fordesc {
    display: none;
  }
    .hero-title h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    .hero-title {
        max-width: 90%;

    }
    .hero-title {
    gap: 15px;
    display: flex;
    flex-wrap: wrap;
}
    .fixed-contact-icons {
      position: fixed;
      right: 5px;
      top: 20%;
      z-index: 50;
      display: flex;
      flex-direction: column;
      gap: 36px;
      transform: scale(.6);
  }
}
.portfolio-masonry-grid {
    column-count: 10;
    column-gap: 18px;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 3;
}
@media (max-width: 1200px) {
    .portfolio-masonry-grid {
        column-count: 8;
    }
}
@media (max-width: 992px) {
    .portfolio-masonry-grid {
        column-count: 6;
    }
}
@media (max-width: 600px) {
    .portfolio-masonry-grid {
        column-count: 3;
    }
}
.portfolio-masonry-item {
    display: inline-block;
    margin-bottom: 18px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    background: #fff;
    transition: box-shadow 0.2s;
}
.portfolio-masonry-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.2s;
    cursor: pointer;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.07);
}
@media (max-width: 767px) {
    .portfolio-masonry-grid-wrapper:not(.expanded):after {
        content: '';
        width: 100%;
        height: 20%;
        bottom: -1px;
        position: absolute;
        left: 0;
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.7), white);
        z-index: 9;
        pointer-events: none;
    }
}
.portfolio-masonry-button {
    text-align: center;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}
span.see-all-projects {
    text-decoration: underline;
    cursor: pointer;
}
@media(min-width: 768px) {
    span.see-all-projects {
        display: none;
    }
    .our-cases .item {
      padding: 10px;
    }
    .formob {
      display: none;
    }
    #about-us .grid>.relative {
    margin-top: -300px;
}
}
.our-cases .item {
    margin: 20px;
}
.our-cases .swiper-slide {
    max-width: 100%;
}
.slide-next {
    text-align: center;
}
.slide-next span {
    text-decoration: underline;
    margin: 20px 0 0;
    display: inline-block;
    cursor: pointer;
}
@media (max-width: 767px) {
    .portfolio-masonry-grid-wrapper {
        max-height: 1000px;
        overflow: hidden;
        margin-bottom: 30px;
        position: relative;
    }
}
section#cases {
    overflow-x: hidden;
}
