.animate-on-scroll {
  opacity: 0;
  transform: translateY(90px) rotateX(18deg);
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: center bottom;
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* === Universal Scroll Animation Base === */
[data-animate] {
  opacity: 0;
  transform: translateY(100px) scale(0.92);
  transition-property: opacity, transform, filter;
  transition-duration: 1.8s;
  transition-timing-function: cubic-bezier(
    0.19,
    1,
    0.22,
    1
  ); /* deeper bounce */
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  perspective: 1200px;
}

[data-animate].animated {
  opacity: 1;
  transform: none;
  filter: none;
}

/* === Specific Pro Animations === */

[data-animate="fade-in-up"] {
  transform: translateY(140px);
}

[data-animate="slide-left"] {
  transform: translateX(-160px) rotateZ(-3deg);
}

[data-animate="slide-right"] {
  transform: translateX(160px) rotateZ(3deg);
}

[data-animate="zoom-in"] {
  transform: scale(0.5);
}

[data-animate="fade-in"] {
  transform: scale(0.8) translateY(30px);
}

/* ===ULTRA IMAGE FLOAT ANIMATION === */
[data-animate="img-float"] {
  opacity: 0;
  transform: translateY(180px) scale(0.75) rotateZ(4deg);
  transition-property: opacity, transform, filter;
  transition-duration: 2s;
  transition-timing-function: cubic-bezier(
    0.16,
    1,
    0.3,
    1
  ); /* soft but bouncy */
  filter: blur(6px) brightness(0.8);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

[data-animate="img-float"].animated {
  opacity: 1;
  transform: translateY(0) scale(1) rotateZ(0);
  filter: blur(0) brightness(1);
}

/* Recent Project Section Styling */

.project-box {
  height: 300px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(80px) scale(0.92);
  transition: transform 1.3s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 1.3s ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.project-box img {
  transition: transform 0.5s ease;
}

.project-box:hover img {
  transform: scale(1.1);
}

.project-info {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  transition: bottom 0.4s ease;
  z-index: 2;
}

.project-box:hover .project-info {
  bottom: 0;
}

.project-box.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.animated-logo {
  height: 50px !important;
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: scale(0.5);
  animation: simpleLogoZoom 1.4s ease-out forwards;
  will-change: transform, opacity;
}

/* Clean zoom in */
@keyframes simpleLogoZoom {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-video-wrapper {
  background: black;
  margin-top: 64px !important;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Desktop: keep it as is */
.hero-video {
  width: 100% !important;
  height: 700px !important;
  object-fit: contain !important;
  background: black;
  display: block;
}

/* Mobile: lock height, auto width */
@media (max-width: 767px) {
  .hero-video {
    height: 300px !important; /* fixed height */
    width: auto !important; /* scale width automatically */
    object-fit: contain !important;
    background: black;
    display: block;
  }
}

@keyframes riseUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-rise {
  animation-name: riseUp;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(
    0.23,
    1,
    0.32,
    1
  ); /* Smooth springy */
  animation-fill-mode: both;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.animated-heart {
  color: red; /* Change as needed */
  animation: pulseHeart 1.5s infinite;
}

@keyframes pulseHeart {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

[data-footer-animate] {
  backface-visibility: hidden;
  will-change: opacity, transform;
  opacity: 1;
}

.footer {
  position: relative;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
  margin: 0 auto;
  padding-left: 15px; /* adjust as per your layout */
  padding-right: 15px; /* adjust as per your layout */
}

@media (max-width: 576px) {
  .testimonial-item h4 {
    font-size: 1rem;
  }

  .testimonial-item p {
    font-size: 0.9rem;
  }

  .testimonial-item span.fs-5 {
    font-size: 1rem !important;
  }
}

/* Remove left margin/padding on navbar brand */
.navbar .navbar-brand {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Style for brand title (h1) to align items and reduce gap */
.brand-title {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0rem !important; /* very small gap between logo and text */
}

/* Remove right margin on logo to close gap */
.animated-logo {
  margin: 0 !important;
  padding: 0;
  display: block;
}

/* More padding-left on desktop */
.navbar {
  padding-left: 1.7rem !important;
}

/* Smaller padding-left on mobile */
@media (max-width: 767px) {
  .navbar {
    padding-left: 0.4rem !important;
  }
}

/* Projects page pagination Style */
.page-btn {
  background: #222;
  color: #fff;
  border: none;
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease-in-out;
}

.page-btn.active {
  background: red;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .service-item .position-relative {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    overflow: hidden;
  }

  .service-item p {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* limit to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.case-study-wrapper {
  min-height: 700px;
  transition: min-height 0.3s ease;
}
.case-study-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.d-none {
  display: none !important;
}

.brand-title {
  color: #b22222; /* base red tone */

  background: linear-gradient(
    180deg,
    #b22222 0%,
    #f44336 35%,    /* brighter, vibrant red highlight */
    #b22222 65%,
    #801818 90%     /* deep red tone */
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.gradient-red {
  color: #b22222;

  background: linear-gradient(
    180deg,
    #b22222 0%,
    #f44336 35%,
    #b22222 65%,
    #801818 90%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text;
  text-fill-color: transparent;
}

/* PARTICLES FULLSCREEN */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* behind all content */
}

body {
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

