/* Premium Aesthetic Overrides */

/* Global Typography & Elements */
body {
  color: #333940;
}

.font-instrument {
  font-family: "Instrument Serif", serif !important;
  color: #1a1cfc;
}

/* Header Enhancements */
.navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  transition: all 0.3s ease;
}

.nav-link {
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: #1a1cfc !important;
  transform: translateY(-2px);
}

/* Banner/Hero Section */
.banner-section {
  background: radial-gradient(circle at 50% -20%, #fdfbfb 0%, #ebedee 100%);
  position: relative;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(73, 40, 253, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  border-radius: 50%;
  z-index: 1;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1) translate(20px, 20px);
    opacity: 1;
  }
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #1a1cfc 0%, #7155FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons (Ultra Realistic) */
.btn-primary {
  background: linear-gradient(135deg, #4928FD 0%, #7155FA 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px -2px rgba(73, 40, 253, 0.4),
    0 2px 4px -2px rgba(73, 40, 253, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 20px -5px rgba(73, 40, 253, 0.5),
    0 4px 8px -4px rgba(73, 40, 253, 0.4);
  background: linear-gradient(135deg, #5c3efd 0%, #836afb 100%);
}

.btn-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover .btn-icon {
  transform: rotate(45deg) scale(1.15);
}

/* Cards & Template Items (Micro-animations) */
.work {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.work:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(73, 40, 253, 0.15),
    0 10px 15px -3px rgba(73, 40, 253, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(73, 40, 253, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.work-img img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 12px;
}

.work:hover .work-img img {
  transform: scale(1.08);
}

.work-overlay {
  opacity: 0;
  transition: all 0.4s ease;
  background: linear-gradient(to bottom, rgba(26, 28, 252, 0.1), rgba(26, 28, 252, 0.3));
  backdrop-filter: blur(2px);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  border-radius: 12px;
}

.work:hover .work-overlay {
  opacity: 1;
}

.work-icon {
  transform: scale(0.5) translateY(-20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.work:hover .work-icon {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Category Filters */
.filter-btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover:not(.btn-primary) {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn.text-primary.border-primary {
  background: rgba(73, 40, 253, 0.05);
}

/* Service Cards */
#services .card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#services .card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08),
    0 10px 15px -3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.9);
}

#services .card-body iconify-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#services .card:hover iconify-icon {
  transform: scale(1.2) rotate(8deg);
}

/* Filter Buttons */
.filter-btn-custom {
  border-radius: 50px !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px !important;
  transition: all 0.25s ease;
  border: 1.5px solid #dee2e6 !important;
}

.filter-btn-dark {
  background-color: #f8f9fa !important;
  color: #444 !important;
  border-color: #dee2e6 !important;
}

.filter-btn-dark:hover {
  background-color: #e9ecef !important;
  color: #222 !important;
  border-color: #adb5bd !important;
}

.filter-btn-active {
  background-color: #EAE5FF !important;
  color: #3b28f5 !important;
  border-color: #7155FA !important;
  box-shadow: 0 4px 15px rgba(73, 40, 253, 0.15);
}

/* Sidebar Advertisements */

.sticky-top .card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sticky-top .bg-primary {
  background: linear-gradient(135deg, #4928FD 0%, #BA81EE 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.sticky-top .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(73, 40, 253, 0.3), 0 10px 15px -3px rgba(73, 40, 253, 0.1) !important;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Accordion Customization */
.accordion-item {
  border-radius: 12px !important;
  border: 1px solid #eaeaea !important;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.accordion-button {
  border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(73, 40, 253, 0.03);
  color: #4928FD;
  box-shadow: none;
}

/* Footer & Bottom CTA CTA */
.get-in-touch {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../assets/images/brands/pattern.svg');
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  border: none !important;
}

/* Floating WebGlow Try Button */
.get-template {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Custom Filter Buttons (Realistic CSS) */
.filter-btn-custom {
  font-weight: 500;
  border-radius: 50px !important;
  padding: 8px 24px !important;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-btn-dark {
  background-color: #1e1e2e !important;
  color: #ffffff !important;
  border-color: #1e1e2e !important;
}

.filter-btn-dark:hover {
  background-color: #2d2d40 !important;
  color: #ffffff !important;
  border-color: #2d2d40 !important;
}

.filter-btn-active {
  background-color: #EAE5FF !important;
  color: #3b28f5 !important;
  border-color: #7155FA !important;
  box-shadow: 0 4px 15px rgba(73, 40, 253, 0.15);
}

/* Safe Fade-In Animation for dynamically injected elements (Replaces AOS) */
@keyframes fadeInUpTemplate {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.template-card {
  animation: fadeInUpTemplate 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  opacity: 0;
  /* Ensures they start hidden before the animation kicks in */
}