/* --- CARDS --- */
.card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 1rem;
  cursor: pointer;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
}

/* --- SERVICE CARDS --- */
.service-card {
  position: relative;
  display: block;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.5s ease;
}

.service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.5s ease;
  opacity: 0.4;
  filter: grayscale(100%);
}

.service-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.service-card:hover .service-bg {
  transform: scale(1.1);
  opacity: 0.8;
  filter: grayscale(0%);
}

.service-card:hover {
  border-color: var(--primary-color);
}

/* --- STORY CARDS --- */
.story-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.story-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  filter: brightness(0.7);
}

.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  z-index: 2;
}

.story-card:hover .story-img {
  transform: scale(1.1);
  filter: brightness(1);
}

/* --- CLIENT LOGOS --- */
.client-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.client-logo-box:hover {
  background: rgba(255, 255, 255, 0.05);
}

.client-logo-box i {
  transition: all 0.3s;
}

.client-logo-box:hover i {
  opacity: 1 !important;
  color: white;
  transform: scale(1.1);
}

/* --- BLOG CARDS --- */
.blog-card-new {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-bottom: 1px solid transparent;
  padding-bottom: 20px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card-new:hover {
  transform: translateY(-5px);
}

.blog-content-new {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-content-new > a {
  margin-top: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card-new:hover .blog-content-new > a {
  opacity: 1;
}

.blog-img-new {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.blog-card-new:hover .blog-img-new {
  transform: scale(1.05);
}

/* --- CONTACT FORM --- */
.contact-section {
  background: #000000;
}

.glass-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.form-control-dark {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px;
}

.form-control-dark:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: none;
  color: white;
}

/* --- SOCIAL BUTTONS --- */
.social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.social-btn:hover {
  background: var(--primary-color);
  color: black;
  border-color: var(--primary-color);
}

/* --- CLIENT MARQUEE --- */
.clients-section {
  position: relative;
  background-color: #010002;
  color: #ffffff;
  overflow: hidden;
}

.clients-bg-img {
  position: absolute;
  top: 0;
  left: -100px;
  width: 832px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.clients-butterfly-img {
  position: absolute;
  top: 11%;
  left: 80px;
  width: 90px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.client-title {
  font-size: calc(1.4rem + 0.8vw);
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
}

.client-subtitle {
  font-size: 1rem;
  opacity: 0.8;
}

.client-logo-card {
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.client-logo-card img {
  max-height: 60px;
  border-radius: 8px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logo-card:hover img {
  transform: scale(1.08);
}

.logo-marquee-wrapper {
  width: 100%;
  overflow: hidden;
}

.marquee-row {
  overflow: hidden;
  margin-bottom: 8px;
}

.marquee-row:last-child {
  margin-bottom: 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track.marquee-reverse {
  animation-direction: reverse;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track .client-logo-card {
  flex-shrink: 0;
  width: 130px;
}

/* --- TITLE / GRADIENT --- */
.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.title-gradient {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 32rem;
  font-weight: 400;
}

/* --- BENTO GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- ARROW ICON --- */
.arrow-icon {
  color: #f59e0b;
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 1.1rem;
}

/* --- RESPONSIVE COMPONENTS --- */
@media (max-width: 991px) {
  .client-title {
    max-width: 100%;
    text-align: center;
  }

  .client-subtitle {
    text-align: center;
  }

  .clients-section .btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
  }

  .clients-bg-img {
    width: 921px;
    opacity: 1;
    left: -73px;
    object-fit: none;
  }

  .clients-butterfly-img {
    width: 60px;
    top: 15%;
    left: 20px;
  }

  .client-logo-box {
    border-right: none;
  }
}

@media (max-width: 576px) {
  .client-logo-card {
    padding: 8px 6px;
  }

  .client-logo-card img {
    max-height: 35px;
  }

  .marquee-track .client-logo-card {
    width: 90px;
  }
}
