/**
 * Modern visual polish for NoriumPortfolio consultancy presentation.
 * Keeps existing brand colors/layout; adds motion, depth, and smoother UI.
 */

:root {
  --np-accent: #EA4343;
  --np-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --np-rise: translateY(28px);
}

/* Soft page atmosphere without changing the core palette */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.section-padding {
  position: relative;
}

/* Reveal-on-scroll */
.np-reveal {
  opacity: 0;
  transform: var(--np-rise);
  transition: opacity 0.8s var(--np-ease), transform 0.8s var(--np-ease);
  will-change: opacity, transform;
}

.np-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.np-reveal-delay-1 { transition-delay: 0.08s; }
.np-reveal-delay-2 { transition-delay: 0.16s; }
.np-reveal-delay-3 { transition-delay: 0.24s; }

/* Sticky header glass */
.main-header-menu.sticky {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.35s var(--np-ease), background-color 0.35s var(--np-ease);
}

/* CTA polish */
.b-primary,
.consult-cta,
.btn-theme {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--np-ease), box-shadow 0.35s var(--np-ease), background-color 0.35s ease, color 0.35s ease !important;
}

.b-primary:hover,
.consult-cta:hover,
.btn-theme:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(234, 67, 67, 0.28);
}

.b-primary::after,
.consult-cta.b-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--np-ease);
  pointer-events: none;
}

.b-primary:hover::after,
.consult-cta.b-primary:hover::after {
  transform: translateX(120%);
}

/* Cards / boxes */
.service-box-single,
.pricing-single,
.portfolio-single,
.blog-single,
.test-meta-wrap,
.experience-single,
.resume-single {
  transition: transform 0.45s var(--np-ease), box-shadow 0.45s var(--np-ease);
}

.service-box-single:hover,
.pricing-single:hover,
.portfolio-single:hover,
.blog-single:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.pricing-single {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  overflow: hidden;
}

.pricing-single .pricing-rate {
  letter-spacing: 0.02em;
}

/* Consultancy framing for pricing timeline (less marketplace feel) */
.pricing-single .time-out {
  opacity: 0.85;
  font-weight: 400;
}

/* Banner image presence */
.banner-section .banner-img img,
.banner-section img {
  transition: transform 1.1s var(--np-ease), filter 1.1s var(--np-ease);
}

.banner-section:hover .banner-img img,
.banner-section:hover img {
  transform: scale(1.02);
}

/* Section headings accent underline animation */
.section-heading span,
.banner-heaadig {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.6s var(--np-ease);
}

.np-reveal.is-visible .section-heading span {
  background-size: 100% 2px;
}

/* Contact form modern focus */
.contact-form input,
.contact-form textarea,
.contact-form .wpcf7-form-control {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--np-accent) !important;
  box-shadow: 0 0 0 4px rgba(234, 67, 67, 0.15);
}

#consult-form {
  scroll-margin-top: 100px;
}

#contact {
  scroll-margin-top: 90px;
}

/* Smooth nav underline */
.main-navigation a {
  position: relative;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--np-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--np-ease);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  transform: scaleX(1);
}

/* Counter polish */
.counter-box .counter {
  transition: transform 0.4s var(--np-ease);
}

.counter-box:hover .counter {
  transform: scale(1.06);
  color: var(--np-accent);
}

/* Dark mode compatibility */
.dark-mode .pricing-single,
.dark-mode .service-box-single,
.dark-mode .portfolio-single,
.dark-mode .blog-single {
  box-shadow: none;
}

.dark-mode .pricing-single:hover,
.dark-mode .service-box-single:hover,
.dark-mode .portfolio-single:hover,
.dark-mode .blog-single:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.dark-mode .main-header-menu.sticky {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .np-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
