/* =========================================================
   Epubor - AVCLabs-inspired visual theme
   Lightweight adaptation: colors / typography / buttons /
   cards / motion. Loaded after style.css so it can be
   tuned or removed without touching the original stylesheet.
   ========================================================= */

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/nunito-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../font/nunito-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/nunito-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../font/nunito-sans-800.woff2') format('woff2');
}

:root {
  --ep-purple: #552ef4;
  --ep-purple-soft: #8b5cf6;
  --ep-orange: #eb5525;
  --ep-dark: #1c114a;
  --ep-text: #555569;
  --ep-lavender: #f6f4ff;
  --ep-white: #ffffff;
  --ep-radius: 12px;
  --ep-gradient: linear-gradient(94.07deg, #552ef4 0%, #eb5525 100%);
  --ep-shadow: 0 18px 40px rgba(85, 46, 244, 0.14);
}

body {
  font-family: 'Nunito Sans', 'Lato', sans-serif;
  color: var(--ep-text);
  background: var(--ep-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--ep-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

p { line-height: 1.75; }

a { color: var(--ep-purple); }

/* ---------- Navigation ---------- */
.navbar {
  position: relative;
  top: auto;
  background: rgba(255, 255, 255, 0.94) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(28, 17, 74, 0.06);
  padding: 14px 0;
  transition: all 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.navbar.nav-sticky,
.page .navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 10px 34px rgba(85, 46, 244, 0.14);
  padding: 8px 0;
}
.page .navbar { background: rgba(255, 255, 255, 0.94) !important; padding: 14px 0; }
.page .navbar.nav-sticky { background: rgba(255, 255, 255, 0.97) !important; padding: 8px 0; }
.navbar .navbar-brand {
  color: var(--ep-purple);
  background: var(--ep-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--ep-dark) !important;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 15px !important;
}
.navbar-dark .navbar-nav .nav-link {
  position: relative;
}
.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--ep-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}
.navbar-toggler { border-color: rgba(85, 46, 244, 0.3); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23552ef4' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.carousel {
  height: auto;
  min-height: 600px;
  margin-bottom: 0;
  overflow: hidden;
  background-color: var(--ep-lavender);
  background-image:
    linear-gradient(90deg, rgba(246, 244, 255, 0.97) 0%, rgba(246, 244, 255, 0.86) 58%, rgba(246, 244, 255, 0.7) 100%),
    url('../picture/hero-gradient-bg.webp');
  background-size: cover;
  background-position: center;
}
.carousel .container-fluid { max-width: 1240px; padding: 0 20px; }
.carousel .carousel-item {
  height: auto;
  min-height: 600px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3%;
  padding: 70px 0;
}
.carousel .carousel-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  animation: ep-float-soft 7s ease-in-out infinite;
}
.carousel .carousel-img::after { display: none; }
.carousel .carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  opacity: 1;
  filter: none;
  box-shadow: none;
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
}
.carousel .carousel-text {
  position: relative;
  order: 1;
  flex: 0 0 55%;
  width: 55%;
  max-width: 620px;
  height: auto;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  z-index: 2;
}
.ep-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 15px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-image: linear-gradient(#ffffff, #ffffff), var(--ep-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--ep-purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(85, 46, 244, 0.12);
}
.ep-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ep-gradient);
}
.carousel .carousel-text h1 {
  margin: 0 0 20px;
  color: var(--ep-dark);
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1.14;
  text-align: left;
}
.carousel .carousel-text h1 span {
  background: var(--ep-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.carousel .carousel-text p {
  max-width: 540px;
  margin-bottom: 22px;
  color: var(--ep-text);
  font-size: 18px;
  line-height: 1.75;
  text-align: left;
}
.ep-checklist {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.ep-checklist li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--ep-dark);
  font-size: 15px;
  font-weight: 700;
}
.ep-checklist li span {
  width: 8px;
  height: 8px;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ep-gradient);
  box-shadow: 0 0 0 4px rgba(85, 46, 244, 0.1);
}
.carousel .carousel-text .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 14px 30px;
  border: 0;
  border-radius: 8px;
  background: var(--ep-gradient);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 26px rgba(85, 46, 244, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.carousel .carousel-text .btn i { position: relative; z-index: 1; margin-right: 0; }
.carousel .carousel-text .btn svg {
  position: relative;
  z-index: 1;
  flex: none;
  width: 18px;
  height: 18px;
}
.carousel .carousel-text .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-22deg);
  transition: left 0.6s ease;
}
.carousel .carousel-text .btn:hover {
  color: #ffffff !important;
  background: var(--ep-gradient);
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(85, 46, 244, 0.36);
}
.carousel .carousel-text .btn:hover::after { left: 150%; }
.carousel .carousel-text .btn.btn-play {
  border: 2px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff), var(--ep-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--ep-purple) !important;
  box-shadow: 0 10px 24px rgba(28, 17, 74, 0.08);
}
.carousel .carousel-text .btn.btn-play:hover {
  color: var(--ep-purple) !important;
  background-image: linear-gradient(#ffffff, #ffffff), var(--ep-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 14px 30px rgba(28, 17, 74, 0.12);
}
.carousel-btn .btn:first-child { margin-right: 14px; }
.carousel .owl-nav .owl-prev,
.carousel .owl-nav .owl-next {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ep-purple);
  box-shadow: 0 6px 18px rgba(28, 17, 74, 0.1);
}
.carousel .owl-nav .owl-prev:hover,
.carousel .owl-nav .owl-next:hover {
  background: var(--ep-purple);
  color: #ffffff;
}

/* ---------- Section headings ---------- */
.section-header { margin-bottom: 38px; }
.section-header h2 {
  margin: 0;
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 800;
  line-height: 1.2;
}
.section-header h2::after { display: none; }
.ep-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--ep-purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Fact stats ---------- */
.fact { padding: 72px 0 22px; }
.fact .fact-item {
  position: relative;
  overflow: hidden;
  padding: 30px 18px 26px;
  border: 1px solid rgba(85, 46, 244, 0.09);
  border-radius: var(--ep-radius);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(28, 17, 74, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.fact .fact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ep-gradient);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.fact .fact-item:hover {
  border-color: transparent;
  box-shadow: var(--ep-shadow);
  transform: translateY(-6px);
}
.fact .fact-item:hover::before { transform: scaleX(1); }
.fact .fact-item img {
  width: auto;
  max-width: 92px;
  max-height: 56px;
  object-fit: contain;
  margin-bottom: 16px;
}
.fact .fact-item h2 { font-size: 19px; font-weight: 800; }

/* ---------- Product cards ---------- */
.service { padding: 72px 0; }
.service .service-item {
  position: relative;
  height: 100%;
  padding: 34px 26px;
  border: 1px solid rgba(85, 46, 244, 0.1);
  border-radius: var(--ep-radius);
  box-shadow: 0 10px 28px rgba(28, 17, 74, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service .service-item:hover {
  border-color: transparent;
  box-shadow: var(--ep-shadow);
  transform: translateY(-8px);
  background-image: linear-gradient(#ffffff, #ffffff), var(--ep-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.service .service-item img { max-height: 54px; margin-bottom: 22px; }
.service .service-item h3 { margin-bottom: 12px; font-size: 21px; font-weight: 800; }
.service .service-item p { margin-bottom: 16px; font-size: 15px; line-height: 1.7; }
.service .service-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ep-purple);
  font-weight: 800;
}
.service .service-item a::after {
  content: '\2192';
  position: static;
  width: auto;
  height: auto;
  background: none;
  font-size: 18px;
  transition: transform 0.3s ease;
}
.service .service-item:hover a::after { transform: translateX(5px); }

/* ---------- Feature / Why choose us ---------- */
.feature {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--ep-lavender);
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../picture/feature-decor.webp') right center / 42% no-repeat;
  opacity: 0.32;
  pointer-events: none;
}
.feature > .container { position: relative; z-index: 1; }
.feature .feature-img::after { display: none; }
.feature .feature-img img {
  border-radius: 16px;
  box-shadow: 0 24px 55px rgba(28, 17, 74, 0.16);
}
.feature p { font-size: 16px; line-height: 1.85; }
.feature p strong { color: var(--ep-dark); font-weight: 800; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 0;
  padding-top: 76px;
  background-color: var(--ep-dark);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(85, 46, 244, 0.45), transparent 42%),
    radial-gradient(circle at 92% 100%, rgba(235, 85, 37, 0.22), transparent 42%);
}
.footer .footer-contact h2::after,
.footer .footer-link h2::after,
.footer .footer-newsletter h2::after { background: var(--ep-gradient); }
.footer .footer-link a { color: rgba(255, 255, 255, 0.82); }
.footer .footer-link a:hover { color: #ffb38f; }
.footer .copyright .row { border-top-color: rgba(255, 255, 255, 0.12); }
.back-to-top {
  border-radius: 10px;
  background: var(--ep-gradient);
  box-shadow: 0 8px 22px rgba(85, 46, 244, 0.3);
}
.back-to-top i { color: #ffffff; }
.back-to-top svg { width: 22px; height: 22px; display: block; margin: 11px auto; }
.footer .footer-contact p svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: #ffffff;
  vertical-align: -3px;
}

/* ---------- Shared buttons on order pages ---------- */
.button {
  border: 0;
  border-radius: 8px;
  background: var(--ep-gradient);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(85, 46, 244, 0.24);
}
.button:hover {
  color: #ffffff;
  filter: brightness(1.06);
  transform: translateY(-2px);
}

/* ---------- Scroll reveal & keyframes ---------- */
.ep-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ep-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes ep-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ep-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}
@keyframes ep-float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .carousel { min-height: 0; }
  .carousel .container-fluid { max-width: 720px; }
  .carousel .carousel-item { flex-direction: column; padding: 52px 0 58px; }
  .carousel .carousel-img { display: none; }
  .carousel .carousel-text {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .carousel .carousel-text h1,
  .carousel .carousel-text p { text-align: center; }
  .carousel .carousel-text p { font-size: 16px; }
  .ep-checklist { text-align: left; }
  .feature::before { background-size: 70% auto; opacity: 0.22; }
}

@media (max-width: 575.98px) {
  .navbar .navbar-brand { font-size: 27px; }
  .carousel .carousel-item { padding: 40px 0 46px; }
  .carousel .carousel-text .btn { padding: 12px 22px; font-size: 15px; }
  .carousel-btn .btn:first-child { margin-right: 10px; }
  .ep-checklist li { font-size: 14px; }
  .feature::before { display: none; }
}

/* Inline SVG icons replacing Font Awesome: keep them at text size everywhere.
   Hero buttons have their own explicit 18px sizing above. */
svg[aria-hidden="true"] {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex: none;
}
.blog .blog-meta svg[aria-hidden="true"] {
  margin: 0 2px 0 10px;
  color: var(--ep-purple);
}
.blog .blog-meta svg[aria-hidden="true"]:first-child { margin-left: 0; }
.footer svg[aria-hidden="true"] { color: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .carousel .carousel-text > *,
  .carousel .carousel-img { animation: none !important; }
  .ep-reveal { opacity: 1; transform: none; }
}
