/* 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);
}

.logo-img {
  height: 60px !important;
  width: auto !important;
  object-fit: contain;
}

/* 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 (Modern Ultra-Realistic) */
.filter-btn-custom {
  font-weight: 500;
  border-radius: 50px !important;
  padding: 8px 24px !important;
  border: 1.5px solid #dee2e6 !important;
  font-size: 0.85rem;
  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;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.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 */
.premium-cta-card {
  background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 50%, #fff9e6 100%) !important;
  border-radius: 48px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.premium-cta-card .display-5 {
  letter-spacing: -2px;
}

.premium-cta-card p {
  font-size: 1.1rem;
  color: #333;
}

.premium-cta-card .btn-dark {
  border-radius: 50px !important;
  padding: 12px 32px !important;
  background-color: #1a1a1a !important;
  border: none !important;
  transition: all 0.3s ease;
}

.premium-cta-card .btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.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);
  }
}

/* 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 */
}

/* Dropdown Customization */
.dropdown-menu-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 12px;
  animation: fadeInDown 0.3s ease-out;
}

.dropdown-item {
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background-color: rgba(26, 28, 252, 0.05);
  color: #1a1cfc;
  transform: translateX(5px);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Search Bar Styles (Static/Always Expanded) */
.search-container {
  position: relative;
  margin-right: 15px;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 0 15px;
  width: 250px; /* Fixed width */
  height: 45px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.search-wrapper:focus-within {
  background: white;
  border-color: #6e8efb;
  box-shadow: 0 4px 12px rgba(110, 142, 251, 0.15);
}
.search-input {
  border: none;
  background: transparent;
  padding: 10px 5px;
  outline: none;
  width: 100%; /* Always full width */
  opacity: 1; /* Always visible */
  font-size: 0.9rem;
  flex-grow: 1;
}
.search-icon {
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}
.search-clear-btn {
  display: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  transition: color 0.2s;
}
.search-clear-btn:hover { color: #64748b; }

/* Consistent Navbar Elements */
.nav-link, .btn-dark {
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-dark {
  padding: 10px 24px !important;
  border-radius: 50px !important;
}

/* Match Highlighting */
.search-highlight {
  background: #fff3cd;
  color: #856404;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Navigation Z-Index Fixes */
.header {
  z-index: 1030 !important;
}
.navbar {
  z-index: 1031 !important;
}
.btn {
  position: relative;
  z-index: 1032 !important;
}
