/* ============================================================
   LIQUID GLASS THEME — Daniel Recuay Portfolio
   Premium glassmorphism: translucent surfaces, blur, luminous
   borders, animated gradients, and micro-animations.
   Loaded AFTER main.css to override via cascade.
   ============================================================ */

/* ==========  1. DESIGN TOKENS  ========== */
:root {
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.22);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-glow: 0 0 20px rgba(93, 86, 178, 0.15);

  --lg-purple: #5A0774;
  --lg-violet: #5D56B2;
  --lg-cyan: #00d4ff;
  --lg-deep: #0a0015;
  --lg-dark-1: #0d0118;
  --lg-dark-2: #120025;

  --gradient-brand: linear-gradient(135deg, #5A0774, #5D56B2, #00d4ff);
}

/* ==========  2. BODY & GLOBAL  ========== */
body {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(90, 7, 116, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 35%, rgba(93, 86, 178, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 35% 85%, rgba(0, 212, 255, 0.08) 0%, transparent 45%),
    linear-gradient(160deg, #0a0015 0%, #120025 30%, #0d0118 60%, #1a0030 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
  background: rgba(93, 86, 178, 0.45);
  color: #ffffff;
}

/* ==========  3. CUSTOM SCROLLBAR  ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--lg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(93, 86, 178, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(93, 86, 178, 0.65);
}

/* ==========  4. SECTIONS — DARK CANVAS  ========== */
section,
.section {
  background-color: transparent !important;
  position: relative;
}

/* Luminous separator between sections */
section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93, 86, 178, 0.3), rgba(0, 212, 255, 0.18), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Remove separator on hero / CTA / clients (they have their own bg) */
.hero::before,
.call-to-action::before,
.clients::before {
  display: none !important;
}

/* ==========  5. SECTION TITLES  ========== */
.section-title h2 {
  color: #ffffff !important;
}
.section-title p {
  color: rgba(255, 255, 255, 0.7) !important;
}
.about h2, .featured-services h2, .faq h2 {
  color: #ffffff !important;
}
.about .section-title p,
.featured-services .section-title p,
.faq .section-title p {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ==========  6. GLASS HEADER  ========== */
.header {
  background: rgba(10, 0, 21, 0.55) !important;
  backdrop-filter: blur(24px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 9999 !important;
}

/* Fix mobile menu clipping: backdrop-filter creates stacking context that traps children */
body.mobile-nav-active .header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(10, 0, 21, 0.98) !important;
  transition: none !important; /* instant — no delay removing the blur */
}
/* Make nav overlay appear instantly above everything */
body.mobile-nav-active .navmenu {
  z-index: 99999 !important;
  transition: none !important;
}
body.mobile-nav-active .navmenu > ul {
  transition: none !important;
  z-index: 99999 !important;
}

.scrolled .header {
  background: rgba(10, 0, 21, 0.88) !important;
  border-bottom-color: rgba(93, 86, 178, 0.25) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45) !important;
}

.header .header-social-links a {
  transition: all 0.3s ease;
}
.header .header-social-links a:hover {
  color: var(--lg-cyan) !important;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

/* ==========  7. NAVIGATION  ========== */
/* Desktop */
@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease !important;
    position: relative;
  }
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(93, 86, 178, 0.55);
  }
  /* Animated underline */
  .navmenu a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
  }
  .navmenu li:hover > a::after,
  .navmenu .active::after {
    transform: scaleX(1);
  }
}

/* Mobile */
@media (max-width: 1199px) {
  .navmenu ul {
    background: rgba(10, 0, 21, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    /* Fix: auto height instead of full-screen */
    bottom: auto !important;
    inset: 60px 20px auto 20px !important;
    padding: 16px 0 20px !important;
  }
  .navmenu a,
  .navmenu a:focus {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
  }
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--lg-cyan) !important;
  }
  .mobile-nav-active .navmenu {
    background: rgba(10, 0, 21, 0.85) !important;
  }
  .mobile-nav-toggle {
    color: rgba(255, 255, 255, 0.8) !important;
  }

  /* Social icons in mobile nav */
  .nav-social-mobile {
    display: flex !important;
    justify-content: center;
    gap: 20px;
    padding: 16px 20px 4px !important;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-social-mobile a {
    display: inline-flex !important;
    padding: 0 !important;
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .nav-social-mobile a:hover {
    color: var(--lg-cyan) !important;
    transform: scale(1.15);
  }
  /* Reset icon styling inside social nav — prevent navmenu circle bg */
  .nav-social-mobile a i {
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 20px !important;
  }
}

/* Hide social row on desktop nav */
@media (min-width: 1200px) {
  .nav-social-mobile {
    display: none !important;
  }
}

/* ==========  8. HERO  ========== */
.hero {
  overflow: hidden;
  position: relative;
}
/* Colored radial overlays for depth */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(90, 7, 116, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(93, 86, 178, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}
.hero .container {
  z-index: 3;
}
.hero h2 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  letter-spacing: -0.5px;
}
.hero p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.85) !important;
}
/* Glass CTA button */
.hero .btn-get-started {
  background: rgba(90, 7, 116, 0.45) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 50px !important;
  padding: 14px 48px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}
/* Shimmer sweep on hover */
.hero .btn-get-started::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: left 0.6s ease;
}
.hero .btn-get-started:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 36px rgba(93, 86, 178, 0.45), 0 0 24px rgba(93, 86, 178, 0.2) !important;
  transform: translateY(-3px);
}
.hero .btn-get-started:hover::before {
  left: 100%;
}

/* ==========  9. ABOUT SECTION  ========== */
.about .content h3 {
  color: #ffffff !important;
}
.about .content .fst-italic {
  color: rgba(255, 255, 255, 0.8) !important;
}
.about .content p {
  color: rgba(255, 255, 255, 0.78);
}
.about .content ul i {
  color: var(--lg-cyan) !important;
}
.about .content ul li span {
  color: rgba(255, 255, 255, 0.88);
}
.about .img-fluid {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  transition: all 0.5s ease;
}
.about .img-fluid:hover {
  box-shadow: 0 12px 48px rgba(93, 86, 178, 0.25);
  border-color: rgba(93, 86, 178, 0.2);
}

/* Glass CTA buttons (about & FAQ) */
a.cta-btn.about-btn {
  background: rgba(90, 7, 116, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 50px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px !important;
  white-space: nowrap;
  font-weight: 500;
  color: #fff !important;
  text-decoration: none !important;
}
/* Reset icon inside CTA buttons — prevent navmenu circle leaking */
a.cta-btn.about-btn i,
a.cta-btn.about-btn span.bi {
  background: none !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1em !important;
  line-height: 1 !important;
  display: inline !important;
  color: inherit !important;
}
a.cta-btn.about-btn:hover {
  background: rgba(90, 7, 116, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 8px 32px rgba(90, 7, 116, 0.4);
  transform: translateY(-2px);
}
a.cta-btn.about-btn.linkedin-btn {
  background: rgba(8, 62, 170, 0.55) !important;
  border: 1px solid rgba(70, 130, 220, 0.3) !important;
}
a.cta-btn.about-btn.linkedin-btn:hover {
  background: rgba(8, 62, 170, 0.75) !important;
  box-shadow: 0 8px 32px rgba(8, 62, 170, 0.4);
}
a.cta-btn.about-btn.whatsapp-btn {
  background: rgba(37, 211, 102, 0.35) !important;
  color: #ffffff !important;
  border: 1px solid rgba(37, 211, 102, 0.3) !important;
}
a.cta-btn.about-btn.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.55) !important;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}

/* ==========  10. CLIENTS (TOOLS CAROUSEL)  ========== */
.clients {
  background: rgba(255, 255, 255, 0.15) !important;
  padding: 50px 0 !important;
  position: relative;
}
/* White Liquid Glass Floating Container */
.clients .container {
  background: rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(30px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(220%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 24px !important;
  padding: 30px 40px !important;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.25), 
    0 5px 15px rgba(93, 86, 178, 0.15),
    inset 0 2px 5px rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.02) !important;
  position: relative;
  overflow: hidden;
}
/* Liquid glossy reflection highlight */
.clients .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
.clients .swiper-slide img {
  filter: brightness(1) contrast(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}
.clients .swiper-slide img:hover {
  filter: brightness(1.1) drop-shadow(0 4px 12px rgba(93, 86, 178, 0.3));
  transform: scale(1.1);
}

/* ==========  11. FEATURED SERVICES — GLASS CARDS  ========== */
.featured-services .card {
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--glass-shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Gradient border glow on hover */
.featured-services .card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 40%, rgba(93,86,178,0.35));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.featured-services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 56px rgba(93, 86, 178, 0.3), 0 0 40px rgba(93, 86, 178, 0.08);
  border-color: rgba(93, 86, 178, 0.28) !important;
}
.featured-services .card:hover::after {
  opacity: 1;
}
/* Darker gradient overlay inside card */
.featured-services .card:before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 15%, rgba(10, 0, 21, 0.92) 68%) !important;
}
.featured-services .card .card-body h3 {
  border-left-color: var(--lg-violet) !important;
}
.featured-services .card:hover .card-body h3 {
  border-left-color: var(--lg-cyan) !important;
}

/* ==========  12. CALL TO ACTION — GLASS CONTAINER  ========== */
/* Dark veil over background image */
.call-to-action::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 21, 0.45);
  z-index: 1;
  pointer-events: none;
}
.call-to-action .container {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 55px 45px !important;
  z-index: 3;
  transition: all 0.4s ease;
}
.call-to-action .container:hover {
  border-color: rgba(93, 86, 178, 0.25);
  box-shadow: 0 12px 48px rgba(93, 86, 178, 0.15);
}
.call-to-action h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.call-to-action p {
  color: rgba(255, 255, 255, 0.85) !important;
}
.call-to-action .cta-btn {
  background: rgba(93, 86, 178, 0.35) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.call-to-action .cta-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 36px rgba(93, 86, 178, 0.45);
  transform: translateY(-3px);
}

/* ==========  13. PORTFOLIO  ========== */
#portfolio {
  background-color: transparent !important;
}
/* Glass pill filter buttons */
.portfolio .portfolio-filters li {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  background: rgba(90, 7, 116, 0.45) !important;
  border-color: rgba(93, 86, 178, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 24px rgba(93, 86, 178, 0.3);
}
/* Portfolio items */
.portfolio .portfolio-item {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio .portfolio-item img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio .portfolio-item:hover {
  border-color: rgba(93, 86, 178, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(-6px);
}
.portfolio .portfolio-item:hover img {
  transform: scale(1.05);
}
/* Glass overlay info */
.portfolio .portfolio-item .portfolio-info {
  background: rgba(10, 0, 21, 0.78) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 18px 18px;
  left: 0 !important;
  right: 0 !important;
}
.portfolio .portfolio-item .portfolio-info h4 {
  color: #ffffff;
}
.portfolio .portfolio-item .portfolio-info p {
  color: rgba(255, 255, 255, 0.55) !important;
}
.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  color: rgba(255, 255, 255, 0.55) !important;
  transition: all 0.3s ease;
}
.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--lg-cyan) !important;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ==========  14. TESTIMONIALS  ========== */
.testimonials {
  background-color: transparent !important;
}
.testimonials .testimonial-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 42px 32px;
  transition: all 0.4s ease;
}
.testimonials .testimonial-item:hover {
  border-color: rgba(93, 86, 178, 0.28);
  box-shadow: 0 8px 36px rgba(93, 86, 178, 0.15);
}
.testimonials .testimonial-item .testimonial-img {
  border: 3px solid rgba(93, 86, 178, 0.5) !important;
  box-shadow: 0 0 24px rgba(93, 86, 178, 0.25);
}
.testimonials .testimonial-item .stars i {
  color: var(--lg-cyan) !important;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.45);
}
.testimonials .swiper-pagination .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.25) !important;
}
.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--lg-violet) !important;
  box-shadow: 0 0 10px rgba(93, 86, 178, 0.5);
}

/* ==========  15. FAQ  ========== */
.faq .faq-container .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.faq .faq-container .faq-item h3 {
  color: rgba(255, 255, 255, 0.9) !important;
}
.faq .faq-container .faq-item h3:hover {
  color: var(--lg-cyan) !important;
}
.faq .faq-container .faq-item .faq-content p {
  color: rgba(255, 255, 255, 0.68);
}
.faq .faq-container .faq-item .faq-toggle {
  color: rgba(255, 255, 255, 0.45);
}
.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--lg-cyan) !important;
}
.faq .faq-container .faq-active h3 {
  color: var(--lg-cyan) !important;
}
.faq .faq-container .faq-active .faq-toggle {
  color: var(--lg-cyan) !important;
}
/* FAQ aside image */
.faq img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ==========  16. FOOTER — GLASS VEIL OVER PHOTO  ========== */
.footer {
  position: relative !important;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 21, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
}
.footer .container,
.footer > .container {
  position: relative;
  z-index: 1;
}
.footer .copyright {
  border-top-color: rgba(255, 255, 255, 0.07) !important;
}

/* ==========  17. SCROLL-TOP GLASS  ========== */
.scroll-top {
  background: rgba(93, 86, 178, 0.35) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-top:hover {
  background: rgba(93, 86, 178, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 24px rgba(93, 86, 178, 0.45);
  transform: translateY(-3px);
}

/* ==========  18. PRELOADER  ========== */
#preloader {
  background-color: var(--lg-deep) !important;
}
#preloader:before {
  border-color: rgba(93, 86, 178, 0.25) !important;
  border-top-color: var(--lg-cyan) !important;
}

/* ==========  19. KEYFRAME ANIMATIONS  ========== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(93, 86, 178, 0.18); }
  50% { box-shadow: 0 0 45px rgba(93, 86, 178, 0.38); }
}

@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.04); }
  28% { transform: scale(1); }
  42% { transform: scale(1.04); }
  70% { transform: scale(1); }
}

/* Hero logo subtle float */
.hero .img-fluid.mb-3 {
  animation: float-subtle 6s ease-in-out infinite;
}

/* Section title shimmer underline */
.section-title h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--lg-violet), var(--lg-cyan), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* ==========  20. UTILITY GLASS CLASS  ========== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  transition: all 0.4s ease;
}
.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

/* ==========  21. RESPONSIVE FINE-TUNING  ========== */

/* ---- Tablet & below (< 1200px) ---- */
@media (max-width: 1199px) {
  /* Hide header social icons bar — social icons are now in the mobile nav menu */
  .header-social-links {
    display: none !important;
  }

  /* Hero logo: proportional for tablets */
  .hero .img-fluid.mb-3 {
    max-width: 180px !important;
    width: 100% !important;
    margin: 0 auto 10px !important;
    display: block !important;
  }

  /* Buttons: stack vertically, ALL same width */
  .container-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .container-btn a.cta-btn.about-btn {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 14px 24px !important;
    font-size: 1rem !important;
    margin: 0 !important;
  }
  /* FAQ section buttons alignment */
  .faq .faq-container .container-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ---- Mobile large (< 992px) ---- */
@media (max-width: 991px) {
  .hero h2 {
    font-size: 2.2rem;
  }
  .hero .col-lg-8 {
    padding-top: 20px;
  }
  .call-to-action .container {
    padding: 40px 30px !important;
  }
  .clients .container {
    padding: 25px 20px !important;
  }
}

/* ---- Mobile (< 768px) ---- */
@media (max-width: 768px) {
  /* Lighter blur for mobile performance */
  .header {
    backdrop-filter: blur(14px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
  }

  /* Hero section — push down so it doesn't collide with header */
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
    padding: 0 8px;
  }
  .hero .img-fluid.mb-3 {
    max-width: 140px !important;
  }
  .hero .col-lg-8 {
    padding-top: 30px;
  }
  .hero .btn-get-started {
    padding: 11px 32px !important;
  }

  /* Clients logos: reasonable size on mobile */
  .clients {
    padding: 30px 0 !important;
  }
  .clients .container {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  /* Sections */
  .call-to-action .container {
    border-radius: 20px;
    padding: 28px 18px !important;
  }
  .call-to-action h3 {
    font-size: 1.4rem;
  }
  .testimonials .testimonial-item {
    border-radius: 20px;
    padding: 28px 18px;
  }
  .featured-services .card {
    border-radius: 18px !important;
    margin-bottom: 18px;
  }
  .portfolio .portfolio-item {
    border-radius: 14px;
  }
  .section-title h2 {
    font-size: 1.65rem;
  }
  .faq img {
    margin-top: 30px;
    margin-bottom: 24px;
    max-height: 300px;
    animation: heartbeat 2.5s infinite ease-in-out;
  }
}

/* ---- Small phone (< 480px) ---- */
@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.88rem;
  }
  .hero .img-fluid.mb-3 {
    max-width: 110px !important;
  }
  .hero .btn-get-started {
    padding: 10px 26px !important;
    font-size: 0.9rem;
  }
  .section-title h2 {
    font-size: 1.45rem;
  }
  .about .content h3 {
    font-size: 1.35rem;
  }
}

/* ==========  22. BLOG STYLES  ========== */
/* Better hover effect and glass override for blog cards */
article.blog-card.glass {
  background: rgba(10, 0, 21, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

article.blog-card.glass:hover {
  transform: translateY(-8px);
  background: rgba(30, 15, 45, 0.65) !important;
  border-color: rgba(93, 86, 178, 0.45) !important;
  box-shadow: 0 15px 35px rgba(93, 86, 178, 0.25), 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Fix text contrast inside blog cards */
article.blog-card.glass .title a {
  color: #ffffff !important;
}
article.blog-card.glass .title a:hover {
  color: var(--lg-cyan) !important;
}
article.blog-card.glass p {
  color: rgba(255, 255, 255, 0.8) !important;
}
article.blog-card.glass .meta .tag {
  color: var(--lg-violet) !important;
  font-weight: 600;
}
article.blog-card.glass .meta .date {
  color: rgba(255, 255, 255, 0.5) !important;
}
article.blog-card.glass .read-more a {
  color: #ffffff !important;
}
article.blog-card.glass .read-more a:hover {
  color: var(--lg-cyan) !important;
}



.blog-card .post-img img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .post-img img {
  transform: scale(1.05);
}

/* Blog Filters - Portfolio Style Pills */
.blog-filters ul {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}
.blog-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.blog-filters li:hover,
.blog-filters li.active {
  color: #fff !important;
  background: rgba(93, 86, 178, 0.55) !important;
  border-color: rgba(93, 86, 178, 0.8) !important;
  box-shadow: 0 4px 15px rgba(93, 86, 178, 0.4);
}

/* Pagination Liquid Glass Fix */
.blog-pagination ul li a.glass {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  transition: all 0.4s ease !important;
}

.blog-pagination ul li a.glass:hover,
.blog-pagination ul li a.glass.active {
  background: rgba(93, 86, 178, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 24px rgba(93, 86, 178, 0.4);
  transform: translateY(-2px);
  color: #fff !important;
}

/* Blog Details Article Content Contrast */
.blog-article-content {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-article-content h1, 
.blog-article-content h2, 
.blog-article-content h3, 
.blog-article-content h4, 
.blog-article-content h5, 
.blog-article-content h6 {
  color: #ffffff !important;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.blog-article-content p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.blog-article-content .code-block pre {
  margin: 0;
  color: #a6accd;
}

.blog-article-content strong {
  color: #ffffff;
}

.blog-article-content blockquote {
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(93, 86, 178, 0.15) !important;
}

