/* Styles of the shared footer, used on every page that shares it. */

.site-footer {
  padding: 60px 0 40px;
}

.footer-divider {
  height: 1px;
  background: var(--border, rgba(255, 255, 255, 0.06));
  margin-bottom: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .footer-logo {
  margin: 0;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted, #8a8694);
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted, #8a8694);
  transition: fill var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.footer-social a:hover {
  background: var(--gradient, linear-gradient(65deg, var(--accent-1), var(--accent-2)));
  transform: scale(1.1);
}

.footer-social a:hover svg {
  fill: #fff;
}

.footer-col-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-links li a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted, #8a8694);
  text-decoration: none;
  transition: color 0.2s ease;
  overflow: hidden;
}

.footer-col-links li a:hover {
  color: #fff;
}

.footer-col-links li a:hover svg {
  animation: diagonalSwoosh 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-dim, #5c586a);
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient, linear-gradient(65deg, var(--accent-1), var(--accent-2)));
  color: #fff;
  font-size: 1.2rem;
  transition: all var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow, 0 0 40px rgba(222, 14, 255, 0.15));
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  :is(.mobile-nav-panel.open .nav-links>li):where(#footer, #footer *) {
    opacity: 0;
    transform: translateX(-20px);
    animation: menuSlideIn 0.4s ease forwards;
  }
  :is(.mobile-nav-panel.open .nav-links>li:nth-child(1)):where(#footer, #footer *) {
    animation-delay: 0.05s;
  }
  :is(.mobile-nav-panel.open .nav-links>li:nth-child(2)):where(#footer, #footer *) {
    animation-delay: 0.1s;
  }
  :is(.mobile-nav-panel.open .nav-links>li:nth-child(3)):where(#footer, #footer *) {
    animation-delay: 0.15s;
  }
  :is(.mobile-nav-panel.open .nav-links>li:nth-child(4)):where(#footer, #footer *) {
    animation-delay: 0.2s;
  }
  :is(.mobile-nav-panel.open .nav-links>li:nth-child(5)):where(#footer, #footer *) {
    animation-delay: 0.25s;
  }
  :is(.mobile-nav-panel.open .nav-links>li:nth-child(6)):where(#footer, #footer *) {
    animation-delay: 0.3s;
  }
  :is(.mobile-nav-panel .nav-links>li>a):where(#footer, #footer *) {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 18px 0;
    color: var(--text-muted, #8a8694);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: color 0.3s ease;
  }
  :is(.mobile-nav-panel .nav-links>li>a:hover):where(#footer, #footer *) {
    color: #fff;
  }
  :is(.mobile-nav-panel .has-dropdown>a):where(#footer, #footer *)::after {
    content: '';
    border: none;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted, #8a8694);
    border-bottom: 2px solid var(--text-muted, #8a8694);
    transform: rotate(-45deg);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    -webkit-text-fill-color: initial;
  }
  :is(.mobile-nav-panel .has-dropdown.expanded>a):where(#footer, #footer *)::after {
    transform: rotate(45deg);
  }
  :is(.mobile-nav-panel .dropdown a):where(#footer, #footer *) {
    font-size: 1.15rem;
    font-weight: 400;
    padding: 4px 0;
    color: #ffffff;
    border-bottom: none;
  }
  :is(.mobile-nav-panel .dropdown a:hover):where(#footer, #footer *) {
    color: var(--accent-1, #DE0EFF);
    background: transparent;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand {
    text-align: center;
    align-items: center;
  }
  .footer-tagline {
    max-width: 100%;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col-links {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :is(.exp-left img):where(#footer, #footer *) {
    width: 56px;
    height: 56px;
  }
  :is(.testimonial-author img):where(#footer, #footer *) {
    width: 52px;
    height: 52px;
  }
}

:is(.about-bio p):where(#footer, #footer *) {
  font-size: 1.1rem;
  color: var(--text-muted, #8a8694);
  margin-bottom: 16px;
  line-height: 1.7;
}

:is(.about-image-wrapper img):where(#footer, #footer *) {
  border-radius: var(--radius, 16px);
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

:is(.collage-photo img):where(#footer, #footer *) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

:is(.collage-float-wrapper:hover .collage-photo img):where(#footer, #footer *) {
  transform: scale(1.05);
}

:is(.collage-artifact img):where(#footer, #footer *) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(.collage-artifact--mouse img):where(#footer, #footer *) {
  object-fit: contain;
}

:is(.about-accordion-panel p):where(#footer, #footer *) {
  font-size: 0.95rem;
  color: rgba(233, 233, 233, 0.7);
  line-height: 1.7;
  margin-bottom: 12px;
}

:is(.about-accordion-panel p:last-child):where(#footer, #footer *) {
  margin-bottom: 0;
}

:is(.cs-masthead-img img):where(#footer, #footer *) {
  width: 100%;
  max-width: 1140px;
  height: auto;
  aspect-ratio: 1140 / 743;
  object-fit: cover;
  border-radius: var(--radius, 16px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

:is(.cs-masthead-img img):where(#footer, #footer *), :is(.cs-masthead-carousel-item img):where(#footer, #footer *) {
  width: 100%;
  aspect-ratio: 1140 / 743;
  object-fit: cover;
  display: block;
  border-radius: var(--radius, 16px);
}

:is(.cs-summary-text p):where(#footer, #footer *) {
  font-size: 1.1rem;
  color: rgba(233, 233, 233, 0.68);
  line-height: 1.8;
  margin-bottom: 16px;
}

:is(.cs-tech-item img):where(#footer, #footer *) {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

:is(.cs-btn svg):where(#footer, #footer *) {
  flex-shrink: 0;
}

:is(.cs-section-body > *:first-child):where(#footer, #footer *) {
  margin-top: 0;
}

:is(.cs-section-body p):where(#footer, #footer *) {
  font-size: 1.05rem;
  color: rgba(233, 233, 233, 0.68);
  line-height: 1.8;
  margin-bottom: 16px;
}

:is(.cs-section-body a):where(#footer, #footer *) {
  color: var(--accent-1, #DE0EFF);
  text-decoration: underline;
}

:is(.cs-section-body a:hover):where(#footer, #footer *) {
  color: var(--accent-2, #751CFF);
}

:is(.cs-section-body img):where(#footer, #footer *) {
  width: 100%;
  border-radius: var(--radius, 16px);
  margin: 24px 0;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

:is(.accordion-panel p):where(#footer, #footer *) {
  font-size: 0.95rem;
  color: rgba(233, 233, 233, 0.7);
  line-height: 1.7;
}

:is(.sap-page > .container):where(#footer, #footer *) {
  width: 100%;
  min-width: 0;
}

:is(.gallery-item img):where(#footer, #footer *) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  will-change: transform;
}

:is(.gallery-item:hover img):where(#footer, #footer *) {
  transform: scale(1.03);
  filter: brightness(1.1);
}

:is(.gallery-item img):where(#footer, #footer *) {
  cursor: none;
}

:is(.blog-read-more svg):where(#footer, #footer *) {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:is(.blog-card:hover .blog-read-more svg):where(#footer, #footer *) {
  transform: translateX(4px);
}

.post-content h4 {
  color: #fff;
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 600;
  line-height: 1.3;
}

:is(.post-content p):where(#footer, #footer *) {
  margin-bottom: 1.5em;
}

:is(.post-content a):where(#footer, #footer *) {
  color: var(--accent-1, #DE0EFF);
  text-decoration: underline;
  text-underline-offset: 4px;
}

:is(.post-content a:hover):where(#footer, #footer *) {
  color: var(--accent-2, #751CFF);
}

:is(.post-content img):where(#footer, #footer *) {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius, 16px);
  margin: 2em 0;
}

:is(.post-content ul):where(#footer, #footer *) {
  margin-bottom: 2em;
  padding-left: 24px;
}

:is(.post-content ul li):where(#footer, #footer *)::marker {
  color: var(--accent-1, #DE0EFF);
}

:is(.post-content ol li):where(#footer, #footer *)::marker {
  color: var(--accent-1, #DE0EFF);
  font-weight: 700;
}

:is(.post-content li):where(#footer, #footer *) {
  margin-bottom: 0.75em;
  padding-left: 8px;
}

:is(.plan-features li):where(#footer, #footer *) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text, #e8e6f0);
  line-height: 1.5;
}

:is(.plan-details-link svg):where(#footer, #footer *) {
  transition: transform var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

:is(.plan-details-link:hover svg):where(#footer, #footer *) {
  transform: translateX(3px);
}

:is(.modal-feature-list li):where(#footer, #footer *) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

@keyframes diagonalSwoosh {
  0% { transform: translate(0, 0); }
  49% { transform: translate(15px, -15px); }
  50% { transform: translate(-15px, 15px); opacity: 0; }
  51% { opacity: 1; }
  100% { transform: translate(0, 0); }
}
